On Sun, Feb 10, 2008 at 02:59:18PM -0800, Junio C Hamano wrote:I think "irrelevant" here is in the eye of the beholder. If you are coming from the perspective of "historical behavior" then the current behavior makes sense. If you are coming from the perspective of a user who does not typically do a lot of branching, then the behavior can be surprising. And I think there is anecdotal evidence that some users _do_ find this surprising. I have personally seen it, and I think even an experienced user like Martin is finding the behavior non-intuitive. Agreed. I think the problem is that you are asking people with particular workflows to always remember to type something extra, and if they forget, you punish them by doing a potentially destructive operation (although admittedly, it is destructive only if you happen to be using "-f"). I think we already have that option (as you mentioned): "git push $there HEAD". We can make it more easily accessible (as you have proposed): "git push HEAD" (though I still have some reservations about that). But none of that changes the fact that for some people's workflows, they will _always_ have to remember to add extra magic to the command line. What I have proposed is adding a config option to make that option even more easily accessible. The only argument I have seen against that is "some users can't use other users' git setup". While this is a downside, I think this uncommon situation is outweighed by the very common situation of users using their _own_ git setups. IOW, such an option makes a tradeoff. Users helping other users must explicitly say what they mean: "git push --matching" or "git push $there HEAD". But users using their own setups can use the shorthand "git push" to do what is most useful for their workflow. And I think we should optimize for the latter case, as it is much more common. -Peff - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Greg Kroah-Hartman | [PATCH 018/196] coda: convert struct class_device to struct device |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| David Newall | Re: Slow DOWN, please!!! |
git: | |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
