summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-24 05:51:30 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-05-24 05:51:30 (GMT)
commit8f87fae6459b7d5b8058691911f1c18c59a5dcbd (patch)
treeb812ce9fc64c0b5152f8ecca3e66c8c48e732d28 /contrib/completion
parentfb72759b7de504f077250fd5bd557e3b9e2a5682 (diff)
downloadgit-8f87fae6459b7d5b8058691911f1c18c59a5dcbd.zip
git-8f87fae6459b7d5b8058691911f1c18c59a5dcbd.tar.gz
git-8f87fae6459b7d5b8058691911f1c18c59a5dcbd.tar.bz2
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>
Diffstat (limited to 'contrib/completion')
-rwxr-xr-xcontrib/completion/git-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index d625206..0b8cb5f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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