Merge branch 'jk/show-branch-lift-name-len-limit' into maint
commit93abd178716c20024422f902d2f0bc560be44dc7
authorJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2017 22:03:29 +0000 (21 15:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2017 22:03:29 +0000 (21 15:03 -0700)
tree0ba4d23fea2e4d88d194d10c88be69a619f9eb33
parentf63df942a3f4245970192161dab259922819e3b5
parentd3cc5f4c44eeacca556f9ae0972837a84e72f288
Merge branch 'jk/show-branch-lift-name-len-limit' into maint

"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