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

Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Mar 24, 2008, 12:21 UTC
Message-ID
<20080324122153.GF25381@dpotapov.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0803241155300.4353@racer.site>
On Mon, Mar 24, 2008 at 11:57:19AM +0100, Johannes Schindelin wrote:
Show 5 quoted lines
> 
> I think I actually suggested something like that.  But that gets only even 
> more complicated: if you have a template for .git/config in 
> $HOME/.gittemplates/, then the global template will be _disregarded_, even 
> if the administrator puts something vital in there.

Maybe, because I cannot imagine what so vital the administrator can put in it, I really do not see that as a problem. I believe that any good administrator should notify all users about any vital changes anyway, because if these changes are vital, it may be necessary not only change templates in $HOME/.gittemplates/ (which very few users will probably have), but perhaps also in existing repositories...

> 
> Maybe the best idea would be an "init" hook, settable from the config, 
> after all.

I agree that seems to be the best solution as it is more flexible than having $HOME/.gittemplates/.

Dmitry
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 17 of 25 in “Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)”
  1. Steffen ProhaskaMar 23, 2008
  2. init-db: Store current value of autocrlfSteffen Prohaska, Mar 23, 2008
  3. Dmitry PotapovMar 24, 2008
  4. Johannes SchindelinMar 23, 2008
  5. Steffen ProhaskaMar 23, 2008
  6. Johannes SchindelinMar 23, 2008
  7. Steffen ProhaskaMar 23, 2008
  8. Johannes SchindelinMar 23, 2008
  9. Steffen ProhaskaMar 23, 2008
  10. Johannes SchindelinMar 23, 2008
  11. Steffen ProhaskaMar 23, 2008
  12. Johannes SchindelinMar 23, 2008
  13. Dmitry PotapovMar 23, 2008
  14. Johannes SchindelinMar 24, 2008
  15. Dmitry PotapovMar 24, 2008
  16. Johannes SchindelinMar 24, 2008
  17. Dmitry PotapovMar 24, 2008
  18. Introduce core.initHookJohannes Schindelin, Mar 24, 2008
  19. init: show "Reinit" message even in an (existing) empty repositoryJohannes Schindelin, Mar 24, 2008
  20. Junio C HamanoMar 25, 2008
  21. Johannes SchindelinMar 25, 2008
  22. Junio C HamanoMar 24, 2008
  23. Introduce core.initHookJohannes Schindelin, Mar 24, 2008
  24. Junio C HamanoMar 24, 2008
  25. Introduce core.initHookJohannes Schindelin, Mar 24, 2008

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.