On Sat, Apr 07, 2007 at 02:26:44PM -0700, Junio C Hamano wrote:
Yes, that is exactly why I suggested "git push" without explicit
refspecs to drive the plumbings to push only matching branches.
So if you are worried about breaking backward compatibility for
real men (iow people who use git-send-pack directly), it would
be a less impact change to (1) add --matching-heads option to
send-pack and perhaps http-push, and change their behaviour only
in that case, and (2) pass that option when git-push did not get
explicit refspecs to send from the user, either from the command
line nor from the config.
Ah, I (obviously) didn't pick that up from your original message. Let me
rework my patch and see if I can get something more reasonable.
-Peff