cmarcusreid / git-status-cache

High performance cache for git repository status. Clients can retrieve information via named pipe.
MIT License
16 stars 4 forks source link

Support for Git Large File Storage (LFS) #18

Open DoCode opened 7 years ago

DoCode commented 7 years ago

Can Git Status Cache support the LFS? Currently the status display the LFS files as modified.

cmarcusreid commented 7 years ago

I'm not familiar with LFS. Could you specify the behavior you'd like to see?

DoCode commented 7 years ago

I think the libgit2 version you are using does not correctly detect the repository status. I check this with the current libgit2(sharp) and the result is okay. Can you verify this and/or update the libgit2 library?

cmarcusreid commented 7 years ago

https://github.com/cmarcusreid/git-status-cache/releases/tag/v1.1.5-alpha has the latest release of the libgit2 library. Could you try it out and let me know if it addresses this?

DHowett-MSFT commented 7 years ago

v1.1.5-alpha + libgit-0.25.1 still reports LFS files as modified.

% $(get-gitstatusfromcache).WorkingModified.Count
2630
dahlbyk commented 7 years ago

libgit2 does support filters (https://github.com/libgit2/libgit2/pull/1847), but does not include a filter implementation for LFS: https://github.com/git-lfs/git-lfs/issues/375 https://github.com/libgit2/libgit2sharp/issues/1236.

hcoona commented 2 years ago

I build GitStatusCache with libgit2 v1.4.2, please see if this could help you. https://github.com/hcoona/git-status-cache/pull/1