{"push_id":2048633611,"size":4,"distinct_size":1,"ref":"refs/heads/pu","head":"7a586738ba14f744ee17d9f7e278dade8a304f71","before":"5796dc50defba147e9ee9bfb4a6a92bb3c29a02f","commits":[{"sha":"67afbcd661e7e0c4d2f3319194ed66d52407fa7a","author":{"name":"Junio C Hamano","email":"3228067b6039a0d99bddaf967dafdecd5cc61600@pobox.com"},"message":"branch: streamline \"attr_only\" handling in validate_new_branchname()\n\nThe function takes a parameter \"attr_only\" (which is a name that is\nhard to reason about, which will be corrected soon) and skips some\nchecks when it is set.  Reorganize the conditionals to make it move\nobvious that some checks are never made when this parameter is set.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","distinct":false,"url":"https://api.github.com/repos/gitster/git/commits/67afbcd661e7e0c4d2f3319194ed66d52407fa7a"},{"sha":"9e1bd7ba9d743ffa7bfd0e4f96384d08159f18e4","author":{"name":"Junio C Hamano","email":"3228067b6039a0d99bddaf967dafdecd5cc61600@pobox.com"},"message":"branch: split validate_new_branchname() into two\n\nChecking if a proposed name is appropriate for a branch is strictly\na subset of checking if we want to allow creating or updating a\nbranch with such a name.  The mysterious sounding 'attr_only'\nparameter to validate_new_branchname() is used to switch the\nfunction between these two roles.\n\nInstead, split the function into two, and adjust the callers.  A new\nhelper validate_branchname() only checks the name and reports if the\nbranch already exists.\n\nThis loses one NEEDSWORK from the branch API.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","distinct":false,"url":"https://api.github.com/repos/gitster/git/commits/9e1bd7ba9d743ffa7bfd0e4f96384d08159f18e4"},{"sha":"9011502d03ac2f85f1030f82447a00220a6aa35a","author":{"name":"Junio C Hamano","email":"3228067b6039a0d99bddaf967dafdecd5cc61600@pobox.com"},"message":"branch: forbid refs/heads/HEAD\n\nstrbuf_check_branch_ref() is the central place where many codepaths\nsee if a proposed name is suitable for the name of a branch.  It was\ndesigned to allow us to get stricter than the check_refname_format()\ncheck used for refnames in general, and we already use it to reject\na branch whose name begins with a '-'.\n\nUse it to also reject \"HEAD\" as a branch name.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","distinct":false,"url":"https://api.github.com/repos/gitster/git/commits/9011502d03ac2f85f1030f82447a00220a6aa35a"},{"sha":"7a586738ba14f744ee17d9f7e278dade8a304f71","author":{"name":"Junio C Hamano","email":"3228067b6039a0d99bddaf967dafdecd5cc61600@pobox.com"},"message":"Merge branch 'jc/branch-name-sanity' into pu\n\n* jc/branch-name-sanity:\n  branch: forbid refs/heads/HEAD\n  branch: split validate_new_branchname() into two\n  branch: streamline \"attr_only\" handling in validate_new_branchname()","distinct":true,"url":"https://api.github.com/repos/gitster/git/commits/7a586738ba14f744ee17d9f7e278dade8a304f71"}]}
{"actor":{"display_login":"gitster"}}