Thread (32 messages) flat view 32 messages, 8 authors, 2016-06-15
  • (unknown) · Bevan Watkiss <hidden> · 2016-06-15
  • Re: · Alex Riesen <hidden> · 2016-06-15
  • RE: · Bevan Watkiss <hidden> · 2016-06-15
  • Re: · Alex Riesen <hidden> · 2016-06-15
  • RE: · Bevan Watkiss <hidden> · 2016-06-15
  • Re: · Björn Steinbrink <hidden> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · Bevan Watkiss <hidden> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · <hidden> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · <hidden> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · <hidden> · 2016-06-15
  • RE: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • RE: · <hidden> · 2016-06-15
  • Re: · Johan Herland <hidden> · 2016-06-15
  • RE: · Bevan Watkiss <hidden> · 2016-06-15
  • Re: · Alex Riesen <hidden> · 2016-06-15
  • Re: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • Re: · Brandon Casey <hidden> · 2016-06-15
  • Re: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • Re: · Brandon Casey <hidden> · 2016-06-15
  • Re: · Brandon Casey <hidden> · 2016-06-15
  • Re: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • Re: · Brandon Casey <hidden> · 2016-06-15
  • Re: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • Re: · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15
  • 'git checkout' and unlink() calls (was: Re: ) · Kjetil Barvik <hidden> · 2016-06-15
  • Re: 'git checkout' and unlink() calls (was: Re: ) · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15

RE:

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:46:43


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help