Re: Random thoughts on "upstream"

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

 



On Sat, May 18, 2013 at 3:07 PM, Ramkumar Ramachandra
<artagnon@xxxxxxxxx> wrote:
> Ramkumar Ramachandra wrote:
>> I guess what I'm saying is: refspec semantics are inherent properties
>> of the remote, not of the local branch.
>
> [remote "ram"]
>     push = refs/heads/link:refs/heads/for-junio/link
>
> is saying: if the branch name matches "link", push it to for-junio/link.
>
> [branch "link"]
>     push = refs/heads/for-junio/link
>
> is saying: push _this_ branch to for-junio/link, irrespective of what
> it is called.
>
> An example illustrating this clearly:
>
> # on branch link-v2
> # work ...
> $ git push
> # work ...
> # ok, I'm ready to replace link
> $ git branch -M link
> $ git push
> # where should the push go?

Exactly where you told it to go.

> Also: putting branch-specific configuration in remote.<name>.push
> would mean that it can potentially accumulate a lot of cruft from
> deleted branches.  It's the same kind problem we face with .gitignore,
> no?

Not many people would use 'remote.<name>.push' and in very specific
circumstances. It's not a problem.

-- 
Felipe Contreras
--
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]