Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] fetch/push: allow refs/*:refs/*

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:33

Junio C Hamano [off-list ref] writes:
Michael Haggerty [off-list ref] writes:
...
quoted
* The second branch of the if is *never* executed.
		else if (args.fetch_all &&
			 (!args.depth || prefixcmp(ref->name, "refs/tags/") )) {
			*newtail = ref;
			ref->next = NULL;
			newtail = &ref->next;
			continue;
		}

I am not familiar with (nor particularly interested in) the "args.depth"
code, so I have no comment on this part offhand.
This is "fetch --all" case.  I think the original intent was to
fetch all branches (hence exclusion of tags) so the prefixcmp() may
not be correct (!prefixcmp() with "refs/heads" would be more kosher)
these days.  I am not sure what !args.depth check wants to do here
(that is, I can see it wants to defeat "fetch --all" and instead
make it go through the usual refspec matching codepath, but I do not
know why we thought that is a good thing to do here).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help