From: Junio C Hamano Date: Tue, 06 Feb 2007 07:46:19 GMT Subject: Re: Difficulties in advertising a new branch to git newbies Message-ID: <7vy7nbiv90.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070206072820.GC23866@coredump.intra.peff.net> Jeff King writes: > sha1_name: match refs in 'refs/remotes/*/%s' > > If no other matches are found for a ref, then look for it in every defined > remote. This will not complain of ambiguity, since we only do the lookup if > no other ref matches. I think the abstraction is wrong -- why do you even need to iterate over .git/remotes (and .git/config remote.*) when the only thing this cares about is refs under refs/remotes/* hierarchy? Or am I missing something blatantly obvious?