git-annex/doc/bugs/git_keeps_refreshing_index
Joey Hess 1113caa53e
preserve unlocked file mtime when dropping
When dropping an unlocked file, preserve its mtime, which avoids git status
unncessarily running the clean filter on the file.

If the index file has close to the same mtime as a work tree file, git will
not trust the index to be up-to-date, and re-runs the clean filter
unncessarily. Preserving the mtime when depopulating a pointer file avoids
git status doing a little (or maybe a lot) of unncessary work.

There are other places that the mtime could be preserved, including other
places where pointer files are written perhaps, but also
populatePointerFile. But, I don't know of cases where those lead to git
status doing unncessary work, so I just fixed the one I'm aware of for now.
2019-10-08 14:01:12 -04:00
..
comment_1_bc76561ae4aaf932217c40109a8d04bd._comment
comment_2_a4c9ccb93a809aff61ae208d31ba0363._comment
comment_3_919fb06b3fc7fe9b54797a805873e3c8._comment
comment_4_b73f9c5603bc69867e1619d871a8abb7._comment