git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-completion: offer remotes for 'git remote update'
@ 2011-09-25 12:06 Auke Schrijnen
  2011-09-28  0:47 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Auke Schrijnen @ 2011-09-25 12:06 UTC (permalink / raw)
  To: git

Completion for 'git remote update' only offers configured remote
groups.

Add all remotes to the completion.

Signed-off-by: Auke Schrijnen <auke@schrijnen.nl>
---
  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 8648a36..ad2175c 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2293,7 +2293,7 @@ _git_remote ()
  		__gitcomp "$(__git_remotes)"
  		;;
  	update)
-		local i c='' IFS=$'\n'
+		local i c="$(__git_remotes)" IFS=$'\n'
  		for i in $(git --git-dir="$(__gitdir)" config --get-regexp 
"remotes\..*" 2>/dev/null); do
  			i="${i#remotes.}"
  			c="$c ${i/ */}"
-- 
1.7.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-28  8:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-25 12:06 [PATCH] git-completion: offer remotes for 'git remote update' Auke Schrijnen
2011-09-28  0:47 ` Junio C Hamano
2011-09-28  8:52   ` Auke Schrijnen
2011-09-28  8:54   ` Auke Schrijnen

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).