aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin McConnell <kevin.mcconnell@gmail.com>2009-03-21 16:29:27 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-22 17:41:46 -0700
commitebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c (patch)
tree2452ea8772aea5ccfe28c2cc27dcedd47174a025
parent26284f9356f4c4d8865db8bb024121311a1f90ff (diff)
downloadgit-ebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c.tar.gz
git-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>
-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 ed235f759..6bc32df17 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
"