wt-status: don't skip a magical number of characters blindly
commit8d8325f8ee3ef187a22743ccbedb978e52e3d095
authorRené Scharfe <l.s.r@web.de>
Sat, 31 Oct 2015 17:37:12 +0000 (31 18:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Nov 2015 17:58:20 +0000 (1 09:58 -0800)
treef8496b29ab9aabe6254a14ae7a4e967e29aeced4
parentbaf0a3e47d807b63e9fc5628caa455d1da91dd6c
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>
wt-status.c