Re: [PATCH 03/23] Introduce "skip-worktree" bit in index, teach Git to get/set this bit
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Dec 15, 2009, 03:51 UTC
- Message-ID
- <fcaeb9bf0912141951l5bbb4baanb991354aa3f11ae4@mail.gmail.com>
- In-Reply-To
- <20091214230619.GA30538@dr-wily.mit.edu>
2009/12/15 Greg Price <price@ksplice.com>:
> I confess I can't tell how the skip-worktree bit does differ from > assume-unchanged. Is its 'goal' different only in that you have a > different motivation for introducing it, or does it actually have a > different effect -- and what is that different effect?
On the fun side, you could use both bits in the same worktree, to narrow your worktree and have some assume-unchanged files.
Another difference is that with assume-unchanged bit, you make a promise to Git that those assume-unchanged files are "good", Git does not have to care for them. If somehow you violate the promise, Git can harm your files on worktree.
-- Duy