Re: [PATCH 00/28] Use main as default branch name

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

 



Felipe Contreras <felipe.contreras@xxxxxxxxx> writes:

> If we already know "origin/HEAD" is very likely pointing to the
> integration branch, then why do we need to know what that branch is
> called in that particular project?
>
> Just refer to that branch as "origin/@", or just "origin".

"git merge origin" turns into "git merge origin/HEAD", I think, and
we had it for quite some time.

But repositories may not even have any origin to begin with.  The
one I am typing this message in certainly does not.  And we need
some fallback default when origin/HEAD cannot be used anyway, and
that is where the convention comes in again.  You cannot escape from
it, and ...

> That would work for projects that follow the convention, and those who
> don't. Why does the tool need to care?

... certainly it would not work for me.





[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]

  Powered by Linux