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

Re: [PATCH] git init: activate rerere by default

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 6, 2007, 12:03 UTC
Message-ID
<Pine.LNX.4.64.0707061231050.4093@racer.site>
In-Reply-To
<7v1wfmi090.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 5 Jul 2007, Junio C Hamano wrote:
Show 7 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > .... I guess that many distros do not update their templates as often 
> > as the core, because they are much more likely to be modified 
> > distro-specifically.
> 
> Can you back that up?  Fedora and Debian seem to ship them unmodified.
No.
> > Further, there are some platforms which are insane enough that you 
> > cannot trust the executable bit, and therefore the templates are 
> > disabled by default.
But this still holds.
Show 26 quoted lines
> If you truly want to have rerere enabled by default, it might make sense 
> to:
> 
>  * Remove "if test -d "$GIT_DIR/rr-cache" tests we have in the
>    existing users;
> 
>  * Implement a new test in builtin-rerere.c, as:
> 
>    - if rerere.enabled configuration does not exist, check
>      $GIT_DIR/rr-cache as before;
> 
>    - if rerere.enabled configuration is true, do not bother
>      checking $GIT_DIR/rr-cache, but just do it;
> 
>    - if rerere.enabled configuration is explicitly set to false,
>      never use rerere.
> 
>  * Maybe later we might change the default value for
>    rerere.enabled to "true", IOW, everybody except people who
>    say "[rerere] enabled = false" in their configuration
>    automatically gets rerere.
> 
> Doing it in git-init, either your patch or by installing a new
> template, means existing old repository would never get the
> updated behaviour unless the user runs "git init" there, which
> is not a very intuitive thing to do to begin with.
Well, I finally bit the apple. Will post in a minute.

Ciao, Dscho

Previous: Junio C HamanoNext: しらいしななこ
Message 10 of 11 in “git init: activate rerere by default”
  1. git init: activate rerere by defaultJohannes Schindelin, Jul 5, 2007
  2. Alex RiesenJul 5, 2007
  3. Junio C HamanoJul 5, 2007
  4. Johannes SchindelinJul 5, 2007
  5. Junio C HamanoJul 5, 2007
  6. Johannes SchindelinJul 5, 2007
  7. Alex RiesenJul 5, 2007
  8. Johannes SchindelinJul 5, 2007
  9. Junio C HamanoJul 6, 2007
  10. Johannes SchindelinJul 6, 2007
  11. しらいしななこJul 6, 2007

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.