* [PATCH] Add --staged to bash completion for git diff
@ 2009-03-21 23:29 Kevin McConnell
2009-03-23 0:33 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Kevin McConnell @ 2009-03-21 23:29 UTC (permalink / raw)
To: git
The --staged option (synonym for --cached) isn't listed in the
completion choices for git diff. This tiny patch adds it.
---
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 ed235f7..6bc32df 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
"
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add --staged to bash completion for git diff
2009-03-21 23:29 [PATCH] Add --staged to bash completion for git diff Kevin McConnell
@ 2009-03-23 0:33 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-03-23 0:33 UTC (permalink / raw)
To: Kevin McConnell; +Cc: git
Kevin McConnell <kevin.mcconnell@gmail.com> wrote:
> The --staged option (synonym for --cached) isn't listed in the
> completion choices for git diff. This tiny patch adds it.
Missing Signed-off-by line?
Otherwise though,
Trivially-Acked-by: Shawn O. Pearce <spearce@spearce.org>
> ---
> 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 ed235f7..6bc32df 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
> "
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-23 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-21 23:29 [PATCH] Add --staged to bash completion for git diff Kevin McConnell
2009-03-23 0:33 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).