Re: [PATCH] Fix "git add -u" data corruption.
- From
Zakirov Salikh <salikh@gmail.com>
- Date
- Aug 16, 2007, 00:15 UTC
- Message-ID
- <eb5812d90708151715k5125d4aq3008d7be54fa66b6@mail.gmail.com>
- In-Reply-To
- <7v1we4pknl.fsf_-_@gitster.siamese.dyndns.org>
Junio wrote:
Show 5 quoted lines
> This applies to 'maint' to fix a rather serious data corruption > issue. When "git add -u" affects a subdirectory in such a way > that the only changes to its contents are path removals, the > next tree object written out of that index was bogus, as the > remove codepath forgot to invalidate the cache-tree entry.
Fixes the issue, thanks.
To make this more fair to git, especially to a notorious statement "git never lost any data in its existence", this commit corruption, while annoying, does not lose any data from working directory, and was easy to fix and work around once I've figured out what's happened.