Skip to content

Commit af4e9e8

Browse files
bebarinogitster
authored andcommitted
completion: update am, commit, and log
git am learned --scissors, git commit learned --dry-run and git log learned --decorate=long|short recently. Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 294ac78 commit af4e9e8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ _git_am ()
668668
--3way --committer-date-is-author-date --ignore-date
669669
--ignore-whitespace --ignore-space-change
670670
--interactive --keep --no-utf8 --signoff --utf8
671-
--whitespace=
671+
--whitespace= --scissors
672672
"
673673
return
674674
esac
@@ -894,6 +894,7 @@ _git_commit ()
894894
__gitcomp "
895895
--all --author= --signoff --verify --no-verify
896896
--edit --amend --include --only --interactive
897+
--dry-run
897898
"
898899
return
899900
esac
@@ -1179,6 +1180,10 @@ _git_log ()
11791180
__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
11801181
return
11811182
;;
1183+
--decorate=*)
1184+
__gitcomp "long short" "" "${cur##--decorate=}"
1185+
return
1186+
;;
11821187
--*)
11831188
__gitcomp "
11841189
$__git_log_common_options
@@ -1191,7 +1196,7 @@ _git_log ()
11911196
--pretty= --format= --oneline
11921197
--cherry-pick
11931198
--graph
1194-
--decorate
1199+
--decorate --decorate=
11951200
--walk-reflogs
11961201
--parents --children
11971202
$merge

0 commit comments

Comments
 (0)