-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Add --stash
as alternative to --clean
to update-checkout
#71178
Conversation
Use of `--clean` can lead to irreversible loss of uncommitted data. It is still desirable to reset Swift project repositories to a clean state, but without deleting all of the in-progress changes. Passing `--stash` instead of (or in addition to) `--clean` will preserve uncommitted changes in stashes of corresponding repositories instead of completely deleting those.
@swift-ci smoke test |
@swift-ci smoke test macos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. A test would be nice.
@swift-ci smoke test |
@swift-ci smoke test |
Can you provide some details on what would be the best way to cover this with tests, in your opinion? |
I think a single test function that
would be good enough for now (the update/clone tests, if any, are really basic anyway). I would place this function in a new subclass in its own file. |
Use of `--clean` can lead to irreversible loss of uncommitted data. We still need to reset Swift project repositories to a clean state, but without deleting all in-progress changes. Passing `--stash` instead of (or in addition to) `--clean` will preserve uncommitted changes in stashes of corresponding repositories.
Add `--stash` as alternative to `--clean` to `update-checkout` (#71178)
Use of
--clean
can lead to irreversible loss of uncommitted data. It is still desirable to reset Swift project repositories to a clean state, but without deleting all of the in-progress changes. Passing--stash
instead of (or in addition to)--clean
will preserve uncommitted changes in stashes of corresponding repositories instead of completely deleting those.