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

Re: [PATCH] Introduce core.keepHardLinks

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 13, 2008, 16:23 UTC
Message-ID
<20081013162351.GQ4856@spearce.org>
In-Reply-To
<20081013162132.GB20371@leksak.fem-net>
Stephan Beyer <s-beyer@gmx.net> wrote:
Show 9 quoted lines
> Johannes Schindelin wrote:
> > and I would have expected others to need a lot less arguments 
> > to see it that way, too.
> 
> Despite the fact that I've never used hardlinks in a git repository, I
> would have expected git to keep them.  So I'm one of the "others" who
> thinks this config option is just sane (and should perhaps even be
> enabled by default, if it does not break stuff on file systems that do
> not have a hardlink feature... but ok)

My problem is many users do "cp -rl a b" to clone a->b and hardlink the working directory. They expect "cd b && git checkout foo" to then only unlink the paths that differ. Updating the original inode would break repository a.

Its a change in behavior, to some of our oldest users. So it can't really be on by default.

-- 
Shawn.
Previous: Stephan BeyerNext: Johannes Schindelin
Message 7 of 14 in “Introduce core.keepHardLinks”
  1. Introduce core.keepHardLinksJohannes Schindelin, Oct 11, 2008
  2. Shawn O. PearceOct 12, 2008
  3. Johannes SchindelinOct 13, 2008
  4. Junio C HamanoOct 13, 2008
  5. Johannes SchindelinOct 13, 2008
  6. Stephan BeyerOct 13, 2008
  7. Shawn O. PearceOct 13, 2008
  8. Johannes SchindelinOct 13, 2008
  9. Junio C HamanoOct 13, 2008
  10. Johannes SchindelinOct 13, 2008
  11. Junio C HamanoOct 13, 2008
  12. Johannes SchindelinOct 15, 2008
  13. Junio C HamanoOct 13, 2008
  14. Johannes SchindelinOct 13, 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.