Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
luizvbo committed Apr 29, 2024
1 parent cb88258 commit b2d4623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/rules/git_stash_pop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ fn auxiliary_get_new_command(
command: &CrabCommand,
system_shell: Option<&dyn Shell>,
) -> Vec<String> {
vec![system_shell.unwrap().and(vec!["git add --update", "git stash pop", "git reset ."])]
vec![system_shell
.unwrap()
.and(vec!["git add --update", "git stash pop", "git reset ."])]
}

pub fn get_new_command(
command: &mut CrabCommand,
system_shell: Option<&dyn Shell>,
) -> Vec<String> {
pub fn get_new_command(command: &mut CrabCommand, system_shell: Option<&dyn Shell>) -> Vec<String> {
get_new_command_with_git_support(auxiliary_get_new_command, command, system_shell)
}

Expand Down
2 changes: 1 addition & 1 deletion src/rules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ mod git_push_without_commits;
mod git_rebase_merge_dir;
mod git_rebase_no_changes;
mod git_remote_delete;
mod git_stash_pop;
mod git_remote_seturl_add;
mod git_rm_local_modifications;
mod git_rm_recursive;
mod git_stash;
mod git_stash_pop;
mod go_run;
mod gradle_wrapper;
mod grep_arguments_order;
Expand Down

0 comments on commit b2d4623

Please sign in to comment.