refs: call branches branches
These things in refs/heads/ hierarchy are called "branches" in human parlance. Replace REF_HEADS with REF_BRANCHES to make it clearer. No end-user visible change intended at this step. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -38,8 +38,8 @@ static int check_ref(const char *name, unsigned int flags)
|
||||
REFNAME_ALLOW_ONELEVEL))
|
||||
return 0;
|
||||
|
||||
/* REF_HEADS means that we want regular branch heads */
|
||||
if ((flags & REF_HEADS) && starts_with(name, "heads/"))
|
||||
/* REF_BRANCHES means that we want regular branch heads */
|
||||
if ((flags & REF_BRANCHES) && starts_with(name, "heads/"))
|
||||
return 1;
|
||||
|
||||
/* REF_TAGS means that we want tags */
|
||||
|
||||
Reference in New Issue
Block a user