* [PATCH] bash: add support for 'git replace'
@ 2009-10-09 20:49 Björn Gustavsson
2009-10-09 22:19 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Björn Gustavsson @ 2009-10-09 20:49 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
---
contrib/completion/git-completion.bash | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 88b1b3c..60009c5 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1794,6 +1794,11 @@ _git_remote ()
esac
}
+_git_replace ()
+{
+ __gitcomp "$(__git_refs)"
+}
+
_git_reset ()
{
__git_has_doubledash && return
@@ -2162,6 +2167,7 @@ _git ()
push) _git_push ;;
rebase) _git_rebase ;;
remote) _git_remote ;;
+ replace) _git_replace ;;
reset) _git_reset ;;
revert) _git_revert ;;
rm) _git_rm ;;
--
1.6.5.rc3.2.g9b675
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bash: add support for 'git replace'
2009-10-09 20:49 [PATCH] bash: add support for 'git replace' Björn Gustavsson
@ 2009-10-09 22:19 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-10-09 22:19 UTC (permalink / raw)
To: Bj??rn Gustavsson; +Cc: git
Acked-by: Shawn O. Pearce <spearce@spearce.org>
> +_git_replace ()
> +{
> + __gitcomp "$(__git_refs)"
> +}
> +
> _git_reset ()
> {
> __git_has_doubledash && return
> @@ -2162,6 +2167,7 @@ _git ()
> push) _git_push ;;
> rebase) _git_rebase ;;
> remote) _git_remote ;;
> + replace) _git_replace ;;
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-09 22:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-09 20:49 [PATCH] bash: add support for 'git replace' Björn Gustavsson
2009-10-09 22:19 ` 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).