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

Re: [PATCH] Introduce core.keepHardLinks

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 13, 2008, 16:09 UTC
Message-ID
<alpine.DEB.1.00.0810131611470.22125@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<7vskr0bnlk.fsf@gitster.siamese.dyndns.org>
Hi,
On Mon, 13 Oct 2008, Junio C Hamano wrote:
Show 12 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> >> I cannot fathom why a user wants this much rope to hang themselves 
> >> with...
> >
> > The question is not so much why anyone want to do this, but _if_.
> 
> Sorry, I think the question should be _why_.
> 
> You can gain a sympathetic "Ah, that is sensible, and 'this much rope to 
> hang themselves with' comment was unwarranted" only by answering that 
> question.
Okay, here are a couple of reasons:
- all the editors that this guy tested keep the hard links, so it was 
  kinda hard to understand why Git insists on behaving differently,
- if the user asked for hard links, it is not Git's place to question that 
  decision,
- and in that user's scenario a certain file has to be shared between 
  different projects that are all version-controlled with Git, but in 
  different teams and with different servers they connect to.  So no, you 
  cannot even make a submodule of it, because the guys involved do not 
  share any repository/server access.  Besides, submodules are not 
  user-friendly enough yet.

Oh, and come to think of it, this could solve the old issue of "I want to track only a few files in my $HOME/".

Anyway, I think that breaking hard links is not a nice habit of Git (after all, from the user's point of view the file is not created, but modified!), and I would have expected others to need a lot less arguments to see it that way, too.

Ciao, Dscho

Previous: Junio C HamanoNext: Stephan Beyer
Message 5 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.