Repository navigation
Conversation
…ile diffing Signed-off-by: Jochen Hunz <[email protected]>
…used by sparse checkout code as well Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
The sparse-checkout file is treated as a git_attr_file. A public API git_sparse_check_path reads the sparse-checkout file from the attribute file cache and checks the path against this attribute file using the gitignore ruleset Signed-off-by: Jochen Hunz <[email protected]>
…ed git_sparse object Signed-off-by: Jochen Hunz <[email protected]>
…es that are excluded by the sparse checkout ruleset - if sparse checkout is enabled Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
…arse Signed-off-by: Jochen Hunz <[email protected]>
…accessed by checkout and diff functionalities quickly. Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
…heckout Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
…ries Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
Signed-off-by: Jochen Hunz <[email protected]>
jochenhz
force-pushed
the
features/sparse-checkout
branch
from
April 3, 2021 13:22
e0a0f5a to
e3cb6de
Compare
|
Is there any chance this PR will get merged? Would love to see |
|
Is there any progress on this? I've got a fork that builds on this PR, happy to submit it here if it's of any value. |
Closed
Contributor
Author
|
Sorry for not being responsive - I am still swamped in work. So thanks a lot @YuKitsune for your initiative! |
|
any plans on merging this pull request? |
|
It's been a while, any interest in reviving this PR? One of the few bigger limitations of libgit2 imo |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sparse Checkout
This is a proposal for a very basic but functional sparse checkout implementation in libgit2. As this is a major feature of git I can imagine that I am missing certain edge cases in git and libgit2 especially. It lacks certain features (see below) but I hope this might be a good start to improve and build upon.
What does this do?
GIT_INDEX_ENTRY_SKIP_WORKTREEinto accountsparse-checkoutfile is treated as an attr_file, hence following gitignore rulescore.sparseCheckoutgit_sparse_check_pathto query whether or not a file is excluded from checkoutGIT_INDEX_ENTRY_SKIP_WORKTREEflag ongit_index_read_treebased on the sparse-checkout ruleset.What does it not do?
core.sparseCheckoutConegit sparse-checkout listgit sparse-checkout reapply(but this can be achieved through checkout)git sparse-checkout add / set(so the sparse-checkout file has to be filled manually)GIT_CHECKOUT_NONEandgit_index_read_tree)