Commit 343925d
committed
feat(push): revert overzealous modified status
When pushing a patch, we would ideally like to show the "(modified)"
status when the patch's diff changes. In StGit 2.4.11, the push behavior
was changed such that "(modified)" would be displayed whenever the
patch's underlying commit changed. But this meant that "(modified)"
would be shown in many circumstances where the patch itself didn't
change or didn't have a material change.
Revert to the previous behavior where "(modified)" would only be shown
if the initial patch application failed such that `git merge-recursive`
had to be used to apply the patch.
With this change, pushes will effectively never be shown as
"(modified)". This remains a regression in StGit 2.x relative to 1.x.
The root of this regression is that StGit 2.x, when pushing patches,
uses `git apply --3way` whereas `git apply` withouth the `--3way` option
was used in StGit 1.x. As a consequence, StGit 2.x patch application
effectively never has to fallback to using `git merge-recursive` because
`--3way` is correct/effective. But that also means that StGit's previous
mechanism for determining whether a push modifies a patch no longer
works.1 parent 1fd0d5d commit 343925d
2 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
| 1093 | + | |
1093 | 1094 | | |
1094 | 1095 | | |
1095 | 1096 | | |
| |||
1130 | 1131 | | |
1131 | 1132 | | |
1132 | 1133 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | 1140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments