mirror of
https://github.com/git/git.git
synced 2024-09-08 03:50:44 +02:00
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:
parent
786a3e4b8d
commit
a096e70c78
@ -68,7 +68,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
||||
N_("path of git-upload-pack on the remote host"),
|
||||
PARSE_OPT_HIDDEN },
|
||||
OPT_BIT('t', "tags", &flags, N_("limit to tags"), REF_TAGS),
|
||||
OPT_BIT('h', "heads", &flags, N_("limit to heads"), REF_HEADS),
|
||||
OPT_BIT('h', "heads", &flags, N_("limit to heads"), REF_BRANCHES),
|
||||
OPT_BIT(0, "refs", &flags, N_("do not show peeled tags"), REF_NORMAL),
|
||||
OPT_BOOL(0, "get-url", &get_url,
|
||||
N_("take url.<base>.insteadOf into account")),
|
||||
@ -100,7 +100,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (flags & REF_TAGS)
|
||||
strvec_push(&transport_options.ref_prefixes, "refs/tags/");
|
||||
if (flags & REF_HEADS)
|
||||
if (flags & REF_BRANCHES)
|
||||
strvec_push(&transport_options.ref_prefixes, "refs/heads/");
|
||||
|
||||
remote = remote_get(dest);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user