threads / patch / 21176

patchbash: add support for 'git replace'

Subject: [PATCH] bash: add support for 'git replace'

## tl;dr

2 messages between Oct 9, 2009 and Oct 9, 2009. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Björn Gustavsson· Oct 9, 2009, 20:49 UTC · lore
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
---
 contrib/completion/git-completion.bash |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Show changes to contrib/completion/git-completion.bash +6 −0
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
Shawn O. Pearce· Oct 9, 2009, 22:19 UTC · re: Björn Gustavsson · lore

Re: [PATCH] bash: add support for 'git replace'

Acked-by: Shawn O. Pearce <spearce@spearce.org>
 
Show 13 quoted lines
> +_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.

← back to recent threads