Re: git stash destroys hard links
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 22, 2012, 17:41 UTC
- Message-ID
- <7v62bo5d0z.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAAXzdLWadNg9d_i8fZTawaxYm3ytcGCT4pzeth=LxrQYEO-3ww@mail.gmail.com>
Steven Penny <svnpenn@gmail.com> writes:
> I dont know if this is even fixable, but I wanted to at least mention it.
I do not think there is anything specific to stash. Whenever we write out results of an operation to a file in the working tree, we first unlink(2) and then creat(2), which essentially breaks hardlinked files and avoids updating some _other_ paths that share the underlying file with the updated path.