Merge branch 'jk/show-branch-lift-name-len-limit'
commit74a772774d114f57fb95ae1242953f161333bac6
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 21:57:16 +0000 (27 13:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 21:57:16 +0000 (27 13:57 -0800)
tree95731221fe0527299650118b238d9c345057e34d
parentace83dc26a13ada8f6b2c011b01fc0ae9e48b86f
parentd3cc5f4c44eeacca556f9ae0972837a84e72f288
Merge branch 'jk/show-branch-lift-name-len-limit'

"git show-branch" expected there were only very short branch names
in the repository and used a fixed-length buffer to hold them
without checking for overflow.

* jk/show-branch-lift-name-len-limit:
  show-branch: use skip_prefix to drop magic numbers
  show-branch: store resolved head in heap buffer
  show-branch: drop head_len variable
builtin/show-branch.c