aboutsummaryrefslogtreecommitdiff
path: root/cache-tree.h
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2011-10-08 16:54:42 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-21 14:38:23 -0700
commitd51a8ecd5fedb6fd09a14fc1b07f8922d6963743 (patch)
tree9b3cb90838a460a29826d3ba942d0929dba122dc /cache-tree.h
parent48058f5df49fb9005418a7d025b374988908c0b5 (diff)
downloadgit-d51a8ecd5fedb6fd09a14fc1b07f8922d6963743.tar.gz
git-d51a8ecd5fedb6fd09a14fc1b07f8922d6963743.tar.xz
completion: fast initial completion for config 'remote.*.fetch' value
Refspecs for branches in a remote repository start with 'refs/heads/', so completing those refspecs with 'git config remote.origin.fetch <TAB>' always offers 'refs/heads/' first, because that's the unique part of the possible refspecs. But it does so only after querying the remote with 'git ls-remote', which can take a while when the request goes through some slower network to a remote server. Don't waste the user's time and offer 'refs/heads/' right away for 'git config remote.origin.fetch <TAB>'. The reason for putting 'refs/heads/' directly into COMPREPLY instead of using __gitcomp() is to avoid __gitcomp() adding a trailing space. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions