diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-07-17 19:00:02 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-20 11:29:24 -0700 |
commit | 33aef83666900df03c39bcf7e391e2f8195dd13c (patch) | |
tree | fc709a2b5aed1e79ce51863e6e4485762c4234df /reflog-walk.c | |
parent | checkout: check_linked_checkout: improve "already checked out" aesthetic (diff) | |
download | tgif-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 'reflog-walk.c')
0 files changed, 0 insertions, 0 deletions