-
Notifications
You must be signed in to change notification settings - Fork 381
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
Switch ui.movement.edit
to a simple boolean.
#4302
Conversation
1788095
to
4867396
Compare
22f2b28
to
0cb4fdc
Compare
0cb4fdc
to
80cf4d2
Compare
4867396
to
2a5ea86
Compare
80cf4d2
to
666be54
Compare
2a5ea86
to
bda122e
Compare
666be54
to
41714af
Compare
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.
I think it's good to squash this into the previous PR, but I don't have strong opinion.
Thanks.
bda122e
to
8eb69a2
Compare
41714af
to
7173dd9
Compare
The flag is a tristate flag where: - Auto - Maintain current behaviour. This edits if the wc parent is not a head commit. Else, it will create a new commit on the parent of the wc in the direction of movement. - Always - Always edit - Never - Never edit, prefer the new+squash workflow. Also add a `--no-edit` flag as the explicit inverse of `--edit` and ensure both flags take precedence over the config. NOTE: There is a follow up #4302 that changes the config knob to a boolean. I'm keeping that as a separate PR for review clarity as that changes some tests, so keeping them separate makes it easier to see what's changing. Part of #3947
8eb69a2
to
d421732
Compare
The flag is a tristate flag where: - Auto - Maintain current behaviour. This edits if the wc parent is not a head commit. Else, it will create a new commit on the parent of the wc in the direction of movement. - Always - Always edit - Never - Never edit, prefer the new+squash workflow. Also add a `--no-edit` flag as the explicit inverse of `--edit` and ensure both flags take precedence over the config. NOTE: There is a follow up #4302 that changes the config knob to a boolean. I'm keeping that as a separate PR for review clarity as that changes some tests, so keeping them separate makes it easier to see what's changing. Part of #3947
d421732
to
9237e35
Compare
* Consensus on #4283 is that `auto` mode where we try to infer when to switch to `edit mode`, should be removed. * Change `ui.movement.edit` to a simple boolean flag. true - means edit mode false- new+squash mode * Remove `MovementSettings` and related config elements as things are simpler now. * Simplify code that used the previous enough. * Update tests that assumed edit mode inference, to specify `--edit` explicitly. * Update tests to update how we specify `ui.movement.edit` Part of #3947
7173dd9
to
f0d6c53
Compare
Yeah, I'll go ahead and squash them now that both are approved. Thanks. |
9237e35
to
2afba89
Compare
This has been squashed into #4283 |
* We started with a tristate flag where: - Auto - Maintain current behaviour. This edits if the wc parent is not a head commit. Else, it will create a new commit on the parent of the wc in the direction of movement. - Always - Always edit - Never - Never edit, prefer the new+squash workflow. However, consensus the review thread is that `auto` mode where we try to infer when to switch to `edit mode`, should be removed. So `ui.movement.edit` is a boolean flag now. - true: edit mode - false: new+squash mode * Also add a `--no-edit` flag as the explicit inverse of `--edit` and ensure both flags take precedence over the config. * Update tests that assumed edit mode inference, to specify `--edit` explicitly. NOTE: #4302 was squashed into this commit, so see that closed PR for review history. Part of #3947
* We started with a tristate flag where: - Auto - Maintain current behaviour. This edits if the wc parent is not a head commit. Else, it will create a new commit on the parent of the wc in the direction of movement. - Always - Always edit - Never - Never edit, prefer the new+squash workflow. However, consensus the review thread is that `auto` mode where we try to infer when to switch to `edit mode`, should be removed. So `ui.movement.edit` is a boolean flag now. - true: edit mode - false: new+squash mode * Also add a `--no-edit` flag as the explicit inverse of `--edit` and ensure both flags take precedence over the config. * Update tests that assumed edit mode inference, to specify `--edit` explicitly. NOTE: #4302 was squashed into this commit, so see that closed PR for review history. Part of #3947
auto
mode where we try to infer when toswitch to
edit mode
, should be removed. See thread in #4283ui.movement.edit
to a simple boolean flag.true - means edit mode
false- new+squash mode
MovementSettings
and related config elements as thingsare simpler now.
--edit
explicitly.ui.movement.edit
Part of #3947
Checklist
If applicable:
CHANGELOG.md