Re: [RFC/PATCH] git push usability improvements and default change
- From
Jeff King <peff@peff.net>
- Date
- Mar 10, 2009, 17:52 UTC
- Message-ID
- <20090310175233.GA26351@sigill.intra.peff.net>
- In-Reply-To
- <1236638151-6465-1-git-send-email-finnag@pvv.org>
On Mon, Mar 09, 2009 at 11:35:44PM +0100, Finn Arne Gangstad wrote:
> git push has learned two new command line options --matching and > --current, which override any configuration. 'matching' pushes all > branches that already exist at the remote, while 'current' pushes the > current branch to whatever it is tracking
I have not been following this topic too closely, so can you please explain (or point me to an explanation about) something? How do these options interact with refspecs given on the command line? That is, why would I choose to use:
git push --current
over
git push - HEAD
(assuming your earlier patch is applied, or "git push HEAD" if Junio's suggested DWIMmery is implemented). And what does it mean to say
git push --matching - HEAD
? Those are conflicting instructions. Is one followed and one discarded? Are they merged?
-Peff