Re: git-push and $GIT_DIR/branches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 7, 2008, 22:27 UTC
- Message-ID
- <7vfxm3f9z8.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20081107204451.GA10394@auto.tuwien.ac.at>
mkoegler@auto.tuwien.ac.at (Martin Koegler) writes:
> I asume, that you [and probably many other] are not very interrested > in this feature. But would you accept a patch changing the push > refspec to HEAD:refs/heads/<head>?
I believe "git-push foo" with .git/branches/foo has worked the way it does now from day one, so the above change you suggest breaks peoples' expectations and documented behaviour, _if_ people are using "branches" with git-push. It definitely is a no-go to just change the behaviour without warning and deprecation period, but with a careful transition plan, I personally do not think there is a fundamental reason not to improve it (others may disagree).
I do not know what Cogito did when you told it to push with such a configuration, though. Its "branches" had quite different semantics from the concept of "remote" in git.