]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'rs/wt-status-detached-branch-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 3 Nov 2015 23:13:08 +0000 (15:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Nov 2015 23:13:08 +0000 (15:13 -0800)
commita59d1d8035a1a6d878274e97818c56bb691ac5c0
treea7d71839d6df1c8764c7afa2ea4663a489afe2b2
parent654b986decd71bafd98a129ae709848949fe4a21
parentc72b49dfab8381abfd947db53c1c9e2da9593ab6
Merge branch 'rs/wt-status-detached-branch-fix'

"git status --branch --short" accessed beyond the constant string
"HEAD", which has been corrected.

* rs/wt-status-detached-branch-fix:
  wt-status: use skip_prefix() to get rid of magic string length constants
  wt-status: don't skip a magical number of characters blindly
  wt-status: avoid building bogus branch name with detached HEAD
  wt-status: exit early using goto in wt_shortstatus_print_tracking()
  t7060: add test for status --branch on a detached HEAD
t/t7060-wtstatus.sh
wt-status.c