git2-rs icon indicating copy to clipboard operation
git2-rs copied to clipboard

Support for git lfs

Open hhamud opened this issue 2 years ago • 3 comments

Request support for git lfs for cloning, pulling, fetching and checking out

hhamud avatar May 27 '23 20:05 hhamud

Any plans to work on this? Seems to be responsible for lack of git-lfs support in uv

lminer avatar Oct 15 '24 22:10 lminer

Seems to be responsible for lack of git-lfs support in uv

It doesn't seem like it. They moved away from libgit2 to git CLI months ago: https://github.com/astral-sh/uv/issues/3312#issuecomment-2165556220

weihanglo avatar Oct 16 '24 00:10 weihanglo

git-lfs is a tool built upon Git's filter attributes. This paragraph describes how it works.

Not sure what you actually mean by supporting git-lfs. Guess you mean implementing the Git LFS client spec inside git2? Since git2 is considerd as a thin-safe wrapper around libgit2, it might be a bit out-of-scope (libgit2 doesn't have native git-lfs client either). Though that doesn't mean we can't do that.

Regardless, there is a prerequisite: https://github.com/rust-lang/git2-rs/issues/442git_filter* bindings need to be exposed first in libgit2-sys.

weihanglo avatar Oct 16 '24 02:10 weihanglo