From: Junio C Hamano Date: Fri, 17 Dec 2010 05:55:27 GMT Subject: Re: [PATCH] branch: do not attempt to track HEAD implicitly Message-ID: <7vsjxxj640.fsf@alter.siamese.dyndns.org> In-Reply-To: <201012151626.35366.trast@student.ethz.ch> Thomas Rast writes: > Martin von Zweigbergk wrote: >> On Tue, Dec 14, 2010 at 1:38 PM, Thomas Rast wrote: >> > Silently drop the HEAD candidate in the implicit (i.e. without -t >> > flag) case, so that the branch starts out without an upstream. >> >> Thanks. This has been on my todo list for a while. >> >> Should it only check for HEAD? How about ORIG_HEAD and FETCH_HEAD? >> Simply anything outside of refs/ maybe? Would that make sense? I was tempted to say "limit to refs/heads/ and refs/remotes/" but perhaps people have custom namespaces defined in refs/ hierarchy and for some of them the tracking may make sense. How about ignoring the implicit track if the ref does not begin with refs/ to cover the obvious ones like HEAD, FETCH_HEAD, etc.?