summaryrefslogtreecommitdiff
path: root/t/t4128-apply-root.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2015-07-17 19:00:02 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-07-20 11:29:24 -0700
commit33aef83666900df03c39bcf7e391e2f8195dd13c (patch)
treefc709a2b5aed1e79ce51863e6e4485762c4234df /t/t4128-apply-root.sh
parentcheckout: check_linked_checkout: improve "already checked out" aesthetic (diff)
downloadtgif-33aef83666900df03c39bcf7e391e2f8195dd13c.tar.xz
checkout: check_linked_checkout: simplify symref parsing
check_linked_checkout() only understands symref-style HEAD (i.e. "ref: refs/heads/master"), however, HEAD may also be a an actual symbolic link (on platforms which support it), thus it will need to check that style HEAD, as well (via readlink()). As a preparatory step, simplify parsing of symref-style HEAD so the actual branch check can be re-used easily for symbolic links (in an upcoming patch). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4128-apply-root.sh')
0 files changed, 0 insertions, 0 deletions