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

Re: Getting rid of symlinks in .git?

From
Petr Baudis <pasky@suse.cz>
Date
Nov 11, 2005, 15:49 UTC
Message-ID
<20051111154938.GU30496@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.63.0511111636400.16210@wbgn013.biozentrum.uni-wuerzburg.de>

Dear diary, on Fri, Nov 11, 2005 at 04:40:43PM CET, I got a letter where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...

Show 10 quoted lines
> On Fri, 11 Nov 2005, Petr Baudis wrote:
> 
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...
> > > 
> > > Please note that symlinks are much more performant than symrefs. Working a 
> > > lot with switching branches, this matters.
> > 
> > What operations get slowed down noticeably in particular?
> 
> Well, if you have to read two files instead of one, it is 100% slower ;-)
But you usually don't read the HEAD that often...

Besides, the kernel has to read the symlink file as well in order to follow the symlink. ;-)

> Note that the only symlink/symref you usually have is .git/HEAD. But it 
> feels wrong to take the worse approach in *all* cases, just because 
> *one* brain-fscked file system/operating system does not support the 
> superior approach.

This is about being consistent, and also to support dumber protocols better.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 10 of 13 in “Getting rid of symlinks in .git?”
  1. Petr BaudisNov 10, 2005
  2. Simon RichterNov 11, 2005
  3. Alex RiesenNov 11, 2005
  4. Petr BaudisNov 11, 2005
  5. Junio C HamanoNov 15, 2005
  6. Alex RiesenNov 15, 2005
  7. Johannes SchindelinNov 11, 2005
  8. Petr BaudisNov 11, 2005
  9. Johannes SchindelinNov 11, 2005
  10. Petr BaudisNov 11, 2005
  11. Johannes SchindelinNov 11, 2005
  12. Nick HengeveldNov 11, 2005
  13. Alex RiesenNov 11, 2005

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.