RE:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 May 2009, Linus Torvalds wrote:

On Thu, 7 May 2009, david@xxxxxxx 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.

even with this a git checkout -f should replace all files, correct?

David Lang

And hope that the code still works ;)

		Linus

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]