Merge branch 'jc/branch-name-sanity'
commit16169285f1e63f6a3d9ec10e48f55d6825d3156b
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Nov 2017 04:41:49 +0000 (28 13:41 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Nov 2017 04:41:49 +0000 (28 13:41 +0900)
treeddcde546556a9bd2a5d4cce6daca273edc30963c
parent5f9953d2c365bffed6f9ee0c6966556bd4d7e2f4
parent662a4c8a097248a3c08a671866ecf37743f3ca4d
Merge branch 'jc/branch-name-sanity'

"git branch" and "git checkout -b" are now forbidden from creating
a branch whose name is "HEAD".

* jc/branch-name-sanity:
  builtin/branch: remove redundant check for HEAD
  branch: correctly reject refs/heads/{-dash,HEAD}
  branch: split validate_new_branchname() into two
  branch: streamline "attr_only" handling in validate_new_branchname()
branch.c
builtin/branch.c
builtin/checkout.c
sha1_name.c