Skip to content

Commit 8f87fae

Browse files
committed
Teach bash completion about recent log long options
(Somewhat) recently git-log learned about --reverse (to show commits in the opposite order) and a looong time ago I think it learned about --raw (to show the raw diff, rather than a unified diff). These are both useful options, so we should make them easy for the user to complete. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent fb72759 commit 8f87fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,13 @@ _git_log ()
592592
__gitcomp "
593593
--max-count= --max-age= --since= --after=
594594
--min-age= --before= --until=
595-
--root --topo-order --date-order
595+
--root --topo-order --date-order --reverse
596596
--no-merges
597597
--abbrev-commit --abbrev=
598598
--relative-date
599599
--author= --committer= --grep=
600600
--all-match
601-
--pretty= --name-status --name-only
601+
--pretty= --name-status --name-only --raw
602602
--not --all
603603
"
604604
return

0 commit comments

Comments
 (0)