libgit2 / libgit2/libgit2sharp
Support git repositories which use the sparse checkout git feature
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
Git introduced a new feature called sparse-checkout This command is very useful in large repositories containing a lot of projects. Using sparse-checkout and partial repository clone allow substantially reduce occupied by the repository space on local disk.
GitDiffMargin is a useful extension for Visual Studio, This extension uses the libgit2sharp. The extension is not work with repositories uses sparse-checkout because such repositories are not supported.
Reproduction steps
Git Diff Margin get an exception unsupported repository version 1. Only versions up to 0 are supported. while creating a Repository on this line.
Refer to the according GitDiffMargin issue for more info:https://github.com/laurentkempe/GitDiffMargin/issues/356
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 GitDiffMargin/Git/GitCommands.cs at line 43 and the linked GitDiffMargin issue, then review how sparse-checkout repositories are represented by Git and libgit2sharp. Reproduce the repository-version exception with a sparse-checkout repository and verify that opening such a repository no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100