Skip to content

Commit

Permalink
fix(bash): fix completion for "committish"
Browse files Browse the repository at this point in the history
For example for "stg rebase o<tab>".
  • Loading branch information
koct9i authored and jpgrayson committed Feb 28, 2024
1 parent 38ff3c3 commit 4d15274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/completion/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fn insert_compreply(script: &mut ShStream, arg: &clap::Arg) {
}
"committish" => {
script.line(
"mapfile -t COMPREPLY < <(compgen -W \"$(_all_branches) $(_tags) $(_remotes)\")",
"mapfile -t COMPREPLY < <(compgen -W \"$(_all_branches) $(_tags) $(_remotes)\" -- \"$cur\")",
);
}
"git-diff-opt" => {
Expand Down

0 comments on commit 4d15274

Please sign in to comment.