Teach bash completion about recent log long options
authorShawn O. Pearce <spearce@spearce.org>
Thu, 24 May 2007 05:51:30 +0000 (01:51 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 24 May 2007 05:51:30 +0000 (01:51 -0400)
(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>
contrib/completion/git-completion.bash

index d6252068c48b1db8218e0f77bf654ec37deebe76..0b8cb5f0e6a3ab2c66b213a9df282602ef866681 100755 (executable)
@@ -592,13 +592,13 @@ _git_log ()
                __gitcomp "
                        --max-count= --max-age= --since= --after=
                        --min-age= --before= --until=
-                       --root --topo-order --date-order
+                       --root --topo-order --date-order --reverse
                        --no-merges
                        --abbrev-commit --abbrev=
                        --relative-date
                        --author= --committer= --grep=
                        --all-match
-                       --pretty= --name-status --name-only
+                       --pretty= --name-status --name-only --raw
                        --not --all
                        "
                return