summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorLibravatar Kevin McConnell <kevin.mcconnell@gmail.com>2009-03-21 16:29:27 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-22 17:41:46 -0700
commitebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c (patch)
tree2452ea8772aea5ccfe28c2cc27dcedd47174a025 /contrib/completion/git-completion.bash
parentImprove error message about fetch into current branch (diff)
downloadtgif-ebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c.tar.xz
Add --staged to bash completion for git diff
The --staged option (synonym for --cached) isn't listed in the completion choices for git diff. This tiny patch adds it. Trivially-Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rwxr-xr-xcontrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ed235f7596..6bc32df178 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -899,7 +899,7 @@ _git_diff ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
- __gitcomp "--cached --pickaxe-all --pickaxe-regex
+ __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex
--base --ours --theirs
$__git_diff_common_options
"