Commit 2be6b6f
rebase -r: make 'merge -c' behave like reword
If the user runs git log while rewording a commit it is confusing if
sometimes we're amending the commit that's being reworded and at other
times we're creating a new commit depending on whether we could
fast-forward or not[1]. For this reason the reword command ensures
that there are no uncommitted changes when rewording. The reword
command also allows the user to edit the todo list while the rebase is
paused. As 'merge -c' also rewords commits make it behave like reword
and add a test.
[1] https://lore.kernel.org/git/[email protected]/T/#m133009cb91cf0917bcf667300f061178be56680a
Signed-off-by: Phillip Wood <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 5d213e4 commit 2be6b6f
3 files changed
+75
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3739 | 3739 | | |
3740 | 3740 | | |
3741 | 3741 | | |
3742 | | - | |
| 3742 | + | |
3743 | 3743 | | |
3744 | | - | |
3745 | | - | |
| 3744 | + | |
3746 | 3745 | | |
3747 | 3746 | | |
3748 | 3747 | | |
| |||
3898 | 3897 | | |
3899 | 3898 | | |
3900 | 3899 | | |
3901 | | - | |
3902 | | - | |
| 3900 | + | |
3903 | 3901 | | |
3904 | | - | |
| 3902 | + | |
3905 | 3903 | | |
3906 | 3904 | | |
3907 | 3905 | | |
| |||
4035 | 4033 | | |
4036 | 4034 | | |
4037 | 4035 | | |
4038 | | - | |
4039 | 4036 | | |
4040 | 4037 | | |
4041 | 4038 | | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
4042 | 4047 | | |
4043 | 4048 | | |
4044 | 4049 | | |
| |||
4405 | 4410 | | |
4406 | 4411 | | |
4407 | 4412 | | |
4408 | | - | |
4409 | | - | |
4410 | | - | |
| 4413 | + | |
| 4414 | + | |
4411 | 4415 | | |
4412 | 4416 | | |
4413 | 4417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
177 | 182 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
0 commit comments