Re: Merge commit subjects git.git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 18, 2010 at 05:22:01PM +0000, Ævar Arnfjörð Bjarmason wrote:
> On Sun, Jul 18, 2010 at 16:56, Sverre Rabbelier <srabbelier@xxxxxxxxx> wrote:
> >
> > Wow, I thought the only place where we gave "master" any special
> > meaning was in that we create it as the default branch. Can't we fix
> > this to be less hard-coded?

There's yet another place as well, but its only related to obsolete pre-1.5
stuff that has very little use anymore.
 
> I.e. master is also treated more magically than others when
> cloning. But I couldn't find the code that does this, so perhaps it
> doesn't do that.

Its guess_remote_head of remote.c (checked v1.7.2-rc3+). Additionally, it
appears that if master doesn't tie for exact match, then first ref in lexical
order is choosen (if master ties for exact match, then it is chosen).

Additionally, it appears that if exact HEAD symref information is available
(not all protocols support that), then that is choosen with no guessing.

-Ilari
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]