diff options
author | Kevin McConnell <kevin.mcconnell@gmail.com> | 2009-03-22 02:29:27 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-23 03:41:46 +0300 |
commit | ebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c (patch) | |
tree | 2452ea8772aea5ccfe28c2cc27dcedd47174a025 /contrib | |
parent | 26284f9356f4c4d8865db8bb024121311a1f90ff (diff) |
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')
-rwxr-xr-x | contrib/completion/git-completion.bash | 2 |
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 " |