]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: streamline "attr_only" handling in validate_new_branchname()
authorJunio C Hamano <gitster@pobox.com>
Fri, 13 Oct 2017 03:57:02 +0000 (12:57 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Oct 2017 08:11:31 +0000 (17:11 +0900)
commit8280c4c1ea59bc6d101c5616490627b63934318e
treef315d92fa31a79e58947d207f689ef9039cc025c
parent111ef79afe185f8731920569450f6a65320f5d5f
branch: streamline "attr_only" handling in validate_new_branchname()

The function takes a parameter "attr_only" (which is a name that is
hard to reason about, which will be corrected soon) and skips some
checks when it is set.  Reorganize the conditionals to make it more
obvious that some checks are never made when this parameter is set.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c