From: Junio C Hamano Date: Tue, 22 May 2012 17:41:32 GMT Subject: Re: git stash destroys hard links Message-ID: <7v62bo5d0z.fsf@alter.siamese.dyndns.org> In-Reply-To: Steven Penny 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.