Re: git-push and $GIT_DIR/branches
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:37
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.