From: Felipe Contreras Date: Sat, 18 May 2013 22:36:23 GMT Subject: Re: Random thoughts on "upstream" Message-ID: In-Reply-To: On Sat, May 18, 2013 at 3:07 PM, Ramkumar Ramachandra 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..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..push' and in very specific circumstances. It's not a problem. -- Felipe Contreras