-
Notifications
You must be signed in to change notification settings - Fork 9
add support for .fengine-reset-ignore #568
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
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4c1c82b
add support for .fengine-reset-ignore to preserve specified files and…
8c76edd
adding docs
0a10d22
add support for nested path exclusions in reset process
ab238f0
refactor delete functions to improve clarity and maintainability
f82a91e
refactoring delete implementation
3f08572
tests refactoring
5a8258d
tests refactoring
d6c2249
refactor delete_all_files_in_local_git_repository for simplified dire…
2cee9a3
docs update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,6 @@ typecheck: | |
| poetry run dmypy run -- src tests | ||
|
|
||
| pre-commit: fmt lint typecheck | ||
|
|
||
| test: | ||
| poetry run pytest tests | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,5 @@ | |
|
|
||
| write-template-from-scratch | ||
| backwards-compatible-template-changes | ||
| reset-incarnation | ||
| ``` | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Reset incarnation | ||
| There is an option to reset an incarnation by removing all customizations that were done to it and bring it back to | ||
| a pristine state as if it was just created freshly from the template. | ||
|
|
||
| By default, the target version and data is taken from the last change that was successfully applied | ||
| to the incarnation, but they can be overridden. For the data, partial overrides are also allowed. | ||
|
|
||
| ## Ignore some files from reset | ||
| Sometimes, you want to keep some files in the incarnation that were created or modified after the initial | ||
| creation of the incarnation. For example, you might have a `pipeline.yaml` which is created by different process. | ||
| To achieve this, you can create a file called `.foxops-reset-ignore` in the root of your template. It would propagate it | ||
| to the root of your incarnation repository. | ||
|
|
||
| This file should contain a list of file paths (one per line) that should be ignored during the reset process. | ||
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.