Skip to content

Support git repositories which use the sparse checkout git feature #1845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
EugeniyMaksimov opened this issue Nov 5, 2020 · 1 comment

Comments

@EugeniyMaksimov
Copy link

EugeniyMaksimov commented Nov 5, 2020

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:laurentkempe/GitDiffMargin#356

@mattjohnsonpint
Copy link

Looks like format version 1 was added in libgit2/libgit2#5388, included with libgit2 v1.1.0. So when libgit2sharp gets updated next, it should be included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants