libgit2 / libgit2/libgit2sharp
git lfs is not supported
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
Commands.Stage & repo.Commit does not preserve LFS files at all, even if LFS is enabled.
Also if you try to read from git history using API like:
Blob blob = repo0.Lookup<Blob>(change.Oid);
using (Stream stream = blob.GetContentStream());
...
Instead of file - you will read pointer file instead -
https://github.com/git-lfs/git-lfs/blob/main/docs/spec.md
text file.
Would be nice if LFS would be supported in libgit2sharp library.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the named Commands.Stage, repo.Commit, repo.Lookup, and Blob.GetContentStream APIs. Determine how LFS-enabled repositories should behave for staging, committing, and history reads; completion requires support for both workflows, with tests covering each case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100