RE:
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- May 7, 2009, 22:36 UTC
- Message-ID
- <alpine.LFD.2.01.0905071531030.4983@localhost.localdomain>
- In-Reply-To
- <alpine.DEB.1.10.0905071521130.15782@asgard>
On Thu, 7 May 2009, david@lang.hm wrote:
> > his use case (as I understand it) is that the working tree is never updated by > anything other than git. it never recieves patches or manual edits.
Well, you can certainly just use the CE_VALID bit in the index too (and this time I really mean CE_VALID). But it won't help anybody else, so it wouldn't be nearly as interesting. And I wonder how badly that code has rotted, thanks to not getting used.
But yes, one thing to do would be
git update-index --assume-unchanged --refresh
which should hopefully set the bit, and then after that setting 'core.ignoreStat' should hopefully keep it set.
Of course, you had then better _never_ make any mistakes and touch the files with non-git commands.
And hope that the code still works ;)
Linus