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 <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stephen Boyd committed
Oct 7, 2009 at 01:48 UTC
af4e9e8c87d3e73056c4758279c4c8462fe5e573
1 file changed
+7
-2
contrib/completion/git-completion.bash
+7
-2
@@ -668,7 +668,7 @@ _git_am ()
668
--3way --committer-date-is-author-date --ignore-date
669
--ignore-whitespace --ignore-space-change
670
--interactive --keep --no-utf8 --signoff --utf8
671
- --whitespace=
671
+ --whitespace= --scissors
672
"
673
return
674
esac
@@ -894,6 +894,7 @@ _git_commit ()
894
__gitcomp "
895
--all --author= --signoff --verify --no-verify
896
--edit --amend --include --only --interactive
897
+ --dry-run
898
"
899
return
900
esac
@@ -1179,6 +1180,10 @@ _git_log ()
1180
__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
1181
return
1182
;;
1183
+ --decorate=*)
1184
+ __gitcomp "long short" "" "${cur##--decorate=}"
1185
+ return
1186
+ ;;
1187
--*)
1188
__gitcomp "
1189
$__git_log_common_options
@@ -1191,7 +1196,7 @@ _git_log ()
1196
--pretty= --format= --oneline
1197
--cherry-pick
1198
--graph
1194
- --decorate
1199
+ --decorate --decorate=
1200
--walk-reflogs
1201
--parents --children
1202
$merge