git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git push origin error (1.6.3 new default functionality)

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
May 14, 2009, 07:37 UTC
Message-ID
<4A0BCA43.9080408@drmicha.warpmail.net>
In-Reply-To
<20090514063157.GA10411@coredump.intra.peff.net>
Jeff King venit, vidit, dixit 14.05.2009 08:31:
> On Wed, May 13, 2009 at 11:54:20AM +0200, Michael J Gruber wrote:
[snip snip snip]
Show 8 quoted lines
>> My main issue is the fact that we have a config variable (push.default)
>> which causes a different behaviour depending on whether it is unset or
>> set to its default (!) value. That is a completely new UI approach. We
> 
> Well, it depends on how you think of the default. The default could be
> "matched-and-warn", and you are fixing it by setting it to "matched". :)
> 
> -Peff

So, then we have a config variable which you can set to its default value only by /unsetting/ it :)

In fact, I think that approach could be valuable in general, making git more fool-proof for beginners while remaining efficient for the regulars. As a new concept, to be taken up by "deny non-ff pushes", "deny delation pushes", "pull without refspec" etc., I would like that. In order to be useful, beginners should be able to rely on it, i.e.: unless certain config is set, the git-gun should never go off when pointed at users' own feet. Might be a worthy target for 1.7 (pun semi-intended).

Michael
Previous: Jeff KingNext: Junio C Hamano
Message 9 of 14 in “git push origin error (1.6.3 new default functionality)”
  1. Caleb CushingMay 12, 2009
  2. Michael J GruberMay 12, 2009
  3. Caleb CushingMay 13, 2009
  4. Jeff KingMay 13, 2009
  5. Johannes SixtMay 13, 2009
  6. Jeff KingMay 13, 2009
  7. Michael J GruberMay 13, 2009
  8. Jeff KingMay 14, 2009
  9. Michael J GruberMay 14, 2009
  10. Junio C HamanoMay 13, 2009
  11. Caleb CushingMay 14, 2009
  12. Junio C HamanoMay 14, 2009
  13. Junio C HamanoMay 14, 2009
  14. Finn Arne GangstadMay 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.