-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Hi,
I am running into an issue with libgit2, where if I do touch command on any file that is going to be run through the lfs filter then libgit2 starts doing the full clean filter on that file each time I do a git_status_file on that file. And it does not update the cache to reflect that only the timestamp has been updated and the actual file has not been modified.
Since libgit2 is not sure that the timestamp has been modified because the file has changed or unknown reasons, it's expected for it to do that the first time the file status checked. But doing that every time and not updating the cache is not a good solution.
Are there any APIs that I can call that will update the index similar to git update-index --refresh? https://git-scm.com/docs/git-update-index#_using_refresh