summaryrefslogtreecommitdiff
path: root/t/Git-SVN/Utils/add_path_to_url.t
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-07-09 05:58:10 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-09 09:24:42 -0700
commita5b3663898d6e45a5d109ce89c516adc2fd4ded2 (patch)
tree52a3a3dfcce6f9d07afc4a92544f5fb6f65cd287 /t/Git-SVN/Utils/add_path_to_url.t
parentref-filter: resolve HEAD when parsing %(HEAD) atom (diff)
downloadtgif-a5b3663898d6e45a5d109ce89c516adc2fd4ded2.tar.xz
branch: only perform HEAD check for local branches
When assembling the ref-filter format to show "git branch" output, we put the "%(if)%(HEAD)" conditional at the start of the overall format. But there's no point in checking whether a remote branch matches HEAD, as it never will. The check should go inside the local conditional; we assemble that format inside the "local" strbuf. By itself, this is just a minor optimization. But in a future patch, we'll need this refactoring to fix local-branch coloring. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/Git-SVN/Utils/add_path_to_url.t')
0 files changed, 0 insertions, 0 deletions