aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2015-10-31 18:37:12 +0100
committerJunio C Hamano <gitster@pobox.com>2015-11-01 09:58:20 -0800
commit8d8325f8ee3ef187a22743ccbedb978e52e3d095 (patch)
treef8496b29ab9aabe6254a14ae7a4e967e29aeced4 /path.c
parentbaf0a3e47d807b63e9fc5628caa455d1da91dd6c (diff)
downloadgit-8d8325f8ee3ef187a22743ccbedb978e52e3d095.tar.gz
git-8d8325f8ee3ef187a22743ccbedb978e52e3d095.tar.xz
wt-status: don't skip a magical number of characters blindly
Use the variable branch_name, which already has "refs/heads/" removed, instead of blindly advancing in the ->branch string by 11 bytes. This is safer and less magical. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions