libgit2 / libgit2/libgit2sharp

Support git repositories which use the sparse checkout git feature

Open
#1,845 1 comment 6 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.