summaryrefslogtreecommitdiff
path: root/t/t2000-checkout-cache-clash.sh
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2011-10-08 16:54:37 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-10-21 14:38:23 -0700
commitabf05987de7b61972e85392ca2f1a4fc25046e57 (patch)
treeba2f406ef3fbab0e1257c9c847a7d07561ec5ec0 /t/t2000-checkout-cache-clash.sh
parentcompletion: optimize refs completion (diff)
downloadtgif-abf05987de7b61972e85392ca2f1a4fc25046e57.tar.xz
completion: make refs completion consistent for local and remote repos
For a local repository the __git_refs() completion helper function lists refs under 'refs/(tags|heads|remotes)/', plus some special refs like HEAD and ORIG_HEAD. For a remote repository, however, it lists all refs. Fix this inconsistency by specifying refs filter patterns for 'git ls-remote' to only list refs under 'refs/(tags|heads|remotes)/'. For now this makes it impossible to complete refs outside of 'refs/(tags|heads|remotes)/' in a remote repository, but a followup patch will resurrect that. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2000-checkout-cache-clash.sh')
0 files changed, 0 insertions, 0 deletions