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

Re: git stash destroys hard links

From
Angus Hammond <angusgh@gmail.com>
Date
May 22, 2012, 17:52 UTC
Message-ID
<CAOBOgRYtMi38f63G2Nzd3--FsmN0F8geFi-AHxL2L2MMHWHFHA@mail.gmail.com>
In-Reply-To
<CAAXzdLWadNg9d_i8fZTawaxYm3ytcGCT4pzeth=LxrQYEO-3ww@mail.gmail.com>
>From the very quick and unscientific test that I just did, it doesn't

appear that git commits hard links, it just collapses them into separate regular files (presumably to avoid changes in one place mucking things up elsewhere without git knowing about it). I don't think it makes much sense to stash hardlinks if the policy is to forget them in commits. Thanks Angus

Previous: Junio C Hamano
Message 3 of 3 in “git stash destroys hard links”
  1. Steven PennyMay 22, 2012
  2. Junio C HamanoMay 22, 2012
  3. Angus HammondMay 22, 2012

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.