Re: [PATCH v3 23/23] untracked cache: guard and disable on system changes
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Dec 9, 2014, 10:04 UTC
- Message-ID
- <20141209100430.GC76457@vauxhall.crustytoothpaste.net>
- In-Reply-To
- <1418047507-22892-25-git-send-email-pclouds@gmail.com>
On Mon, Dec 08, 2014 at 09:05:07PM +0700, Nguyễn Thái Ngọc Duy wrote:
Show 12 quoted lines
> If the user enables untracked cache, then > > - move worktree to an unsupported filesystem > - or simply upgrade OS > - or move the whole (portable) disk from one machine to another > - or access a shared fs from another machine > > there's no guarantee that untracked cache can still function properly. > Record the worktree location and OS footprint in the cache. If it > changes, err on the safe side and disable the cache. The user can > 'update-index --untracked-cache' again to make sure all conditions are > met.
My use case for untracked cache is where I have one machine with a repository and which is also mounted via sshfs on another machine. It looks like this will disable the cache every time I change the machine I access it on. Would you be willing to accept a patch for a configuration option to disable this?
-- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187