Re: [PATCH 4/4] Rename push.default to push.style
- From
Jeff King <peff@peff.net>
- Date
- Mar 30, 2009, 10:29 UTC
- Message-ID
- <20090330102739.GA5163@sigill.intra.peff.net>
- In-Reply-To
- <adf1fd3d0903300200v65393b1bif0050392aa44652e@mail.gmail.com>
On Mon, Mar 30, 2009 at 11:00:03AM +0200, Santi Béjar wrote:
Show 7 quoted lines
> >> This configuration variable says what push should do > >> when no refspec is given and none are configured, so the word "default" > >> should be in there at least. Maybe "defaultref" would have been better? > > I don't see the point of the word default, a lot of configuration is > to set the default value. Git has branch.name.remote, not > branch.name.defaultremote, or user.email, not user.defaultemail,...
The usual case is two layers of options: command line and config options. Thus "git push <remote>" overrides "branch.*.remote".
But in this case there are actually _three_ layers: command line, branch.*.push, and now push.default. I think a name like "push.mode" doesn't make clear the fact that it will never be looked at if you have "branch.*.push" set up.
I think you have a point that "default" is vague, but "defaultMode" would be better than simply "mode".
-Peff