summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2015-10-31 17:37:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-11-01 17:58:20 (GMT)
commit8d8325f8ee3ef187a22743ccbedb978e52e3d095 (patch)
treef8496b29ab9aabe6254a14ae7a4e967e29aeced4 /run-command.h
parentbaf0a3e47d807b63e9fc5628caa455d1da91dd6c (diff)
downloadgit-8d8325f8ee3ef187a22743ccbedb978e52e3d095.zip
git-8d8325f8ee3ef187a22743ccbedb978e52e3d095.tar.gz
git-8d8325f8ee3ef187a22743ccbedb978e52e3d095.tar.bz2
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 'run-command.h')
0 files changed, 0 insertions, 0 deletions