Skip to content
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

enable partial check out of only some files from a repo #455

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

moothiringote
Copy link
Contributor

No description provided.

tools/git.py Outdated Show resolved Hide resolved
@@ -31,27 +33,44 @@ def __init__(
:param commit: Git commit hash
:param checkout_folder_name: Name of the output path repository folder
:param clone_submodules: Flag to clone submodules if set to True
:param files_to_checkout: List of files to be checked out sparsely. If not set, the entire repo is checked out (default behaviour).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the user need to use multiple files from different commits at some point? Maybe this parameter can be specified as a dictionary of commits to lists of files. Would that be confusing for the user?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is a bit too much for my use-case because all the commits are specified at repo-level. I will not add this now, but if everyone thinks it is useful, please let me know.

@moothiringote moothiringote merged commit dbb2e35 into main Oct 19, 2023
4 checks passed
@christophmluscher christophmluscher deleted the git_partial_checkout branch October 19, 2023 09:12
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

Successfully merging this pull request may close these issues.

4 participants