My use case is that
- I have a very large GIT repository created by uidA:gidA with all its files and git index as uidA:gidA
- That I have snapshoted/frozen using netapp file system technology aka froze the content of that directory and the git workspace
- I "filesystem clone" the snapshot for uidB:gidB. which creates a new workspace instantly with an exact replica of the snapshot, with 1 difference every file/directory is now owned by uidB:gidB.
When I do a "git status" it forces an update to the index, most likely because the files/objects in the index are stored as uidA:gidA, while all the files in the "filesystem cloned" workspace are owned by uidB:gidB and there is a mismatch.
Is there a way to efficiently update some or all the objects/files in the index to uidB:gidB. The default update I suspect actually checks each file before updating the index, which in this case is not needed. So I want to way to blindly update all files in the index to uidB:gidB
OR avoid forcing the index update.
Doing an index update in our very large workspace takes 20+ minutes, on NFS. The workspace is 800GB