Skip to content

Infinite Index Refresh Issue #7168

@asinghmodesttree

Description

@asinghmodesttree

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions