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

Re: [RFC] control, what refs are honored by core.logAllRefUpdates

From
Jeff King <peff@peff.net>
Date
Jul 13, 2011, 08:59 UTC
Message-ID
<20110713085915.GA29900@sigill.intra.peff.net>
In-Reply-To
<CAKPyHN1GEkcyacQ_f4hhjaaZx4Fx4tmfz0qRSfTPXJDgUm8mow@mail.gmail.com>
On Wed, Jul 13, 2011 at 10:52:58AM +0200, Bert Wesarg wrote:
Show 16 quoted lines
> On Tue, Jul 12, 2011 at 20:25, Jeff King <peff@peff.net> wrote:
>  [1] If we were starting from scratch, you could make that distinction
> > with a new operator, like:
> >
> >  [core]
> >    autoLogRef = heads
> >    autoLogRef += remotes
> >    autoLogRef += notes
> >    autoLogRef = heads
> >
> > which would be equivalent to what you wrote above. But because it
> > switches the semantics of "=" to "replace" instead of "append" for
> > multi-value keys, it would break all current config that uses multiple
> > "fetch" lines (for example).
> 
> Adding ! as a negator would also break config files read by old git versions.

True. I consider that less bad than "existing config files are broken", but it is still worth thinking about. It really only affects people who move back and forth between git versions using the same set of config files.

In general, our config stays pretty compatible between versions, but there are exceptions. E.g., older versions of git will complain about:

  [pager]
    log = whatever

because "pager.*" previously had to be a bool. I run into this when testing old git versions.

I have no idea how common that sort of thing is with regular users, though.

-Peff
Previous: Bert Wesarg
Message 7 of 7 in “Re: [RFC] control, what refs are honored by core.logAllRefUpdates”
  1. Bert WesargJul 12, 2011
  2. Junio C HamanoJul 12, 2011
  3. Bert WesargJul 12, 2011
  4. Jeff KingJul 12, 2011
  5. Jonathan NiederJul 12, 2011
  6. Bert WesargJul 13, 2011
  7. Jeff KingJul 13, 2011

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.