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

--include option #264

Merged
merged 1 commit into from
May 16, 2023
Merged

--include option #264

merged 1 commit into from
May 16, 2023

Conversation

forsyth2
Copy link
Collaborator

@forsyth2 forsyth2 commented May 16, 2023

Add --include option. Resolves #199.

@forsyth2 forsyth2 self-assigned this May 16, 2023
@forsyth2 forsyth2 force-pushed the issue-199 branch 2 times, most recently from 94b77b5 to f4696c9 Compare May 16, 2023 00:42
# Eliminate files based on exclude pattern
# First, add files based on include pattern
if include is not None:
files = include_files(include, files)
Copy link
Collaborator Author

@forsyth2 forsyth2 May 16, 2023

Choose a reason for hiding this comment

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

It is sufficient to determine which files to add to the zstash archive after getting the entire list of files, as the archiving step (which comes later) is the computationally expensive part.

@forsyth2 forsyth2 force-pushed the issue-199 branch 2 times, most recently from a02ffc2 to a82856f Compare May 16, 2023 20:39
@forsyth2 forsyth2 marked this pull request as ready for review May 16, 2023 21:30
@forsyth2 forsyth2 merged commit b4fae76 into main May 16, 2023
@forsyth2 forsyth2 deleted the issue-199 branch May 16, 2023 21:31
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.

Add --include option
1 participant