@@ -77,7 +77,7 @@ test_expect_success 'status when rebase in progress before resolving conflicts'
77
77
ONTO=$(git rev-parse --short HEAD^^) &&
78
78
test_must_fail git rebase HEAD^ --onto HEAD^^ &&
79
79
cat >expected <<-EOF &&
80
- # HEAD detached at $ONTO
80
+ # rebase in progress; onto $ONTO
81
81
# You are currently rebasing branch ' \' ' rebase_conflicts' \' ' on ' \' ' $ONTO' \' ' .
82
82
# (fix conflicts and then run "git rebase --continue")
83
83
# (use "git rebase --skip" to skip this patch)
@@ -104,7 +104,7 @@ test_expect_success 'status when rebase in progress before rebase --continue' '
104
104
echo three >main.txt &&
105
105
git add main.txt &&
106
106
cat >expected <<-EOF &&
107
- # HEAD detached at $ONTO
107
+ # rebase in progress; onto $ONTO
108
108
# You are currently rebasing branch ' \' ' rebase_conflicts' \' ' on ' \' ' $ONTO' \' ' .
109
109
# (all conflicts fixed: run "git rebase --continue")
110
110
#
@@ -136,7 +136,7 @@ test_expect_success 'status during rebase -i when conflicts unresolved' '
136
136
ONTO=$(git rev-parse --short rebase_i_conflicts) &&
137
137
test_must_fail git rebase -i rebase_i_conflicts &&
138
138
cat >expected <<-EOF &&
139
- # HEAD detached at $ONTO
139
+ # rebase in progress; onto $ONTO
140
140
# You are currently rebasing branch ' \' ' rebase_i_conflicts_second' \' ' on ' \' ' $ONTO' \' ' .
141
141
# (fix conflicts and then run "git rebase --continue")
142
142
# (use "git rebase --skip" to skip this patch)
@@ -162,7 +162,7 @@ test_expect_success 'status during rebase -i after resolving conflicts' '
162
162
test_must_fail git rebase -i rebase_i_conflicts &&
163
163
git add main.txt &&
164
164
cat >expected <<-EOF &&
165
- # HEAD detached at $ONTO
165
+ # rebase in progress; onto $ONTO
166
166
# You are currently rebasing branch ' \' ' rebase_i_conflicts_second' \' ' on ' \' ' $ONTO' \' ' .
167
167
# (all conflicts fixed: run "git rebase --continue")
168
168
#
@@ -188,10 +188,9 @@ test_expect_success 'status when rebasing -i in edit mode' '
188
188
export FAKE_LINES &&
189
189
test_when_finished "git rebase --abort" &&
190
190
ONTO=$(git rev-parse --short HEAD~2) &&
191
- TGT=$(git rev-parse --short two_rebase_i) &&
192
191
git rebase -i HEAD~2 &&
193
192
cat >expected <<-EOF &&
194
- # HEAD detached from $TGT
193
+ # rebase in progress; onto $ONTO
195
194
# You are currently editing a commit while rebasing branch ' \' ' rebase_i_edit' \' ' on ' \' ' $ONTO' \' ' .
196
195
# (use "git commit --amend" to amend the current commit)
197
196
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -216,9 +215,8 @@ test_expect_success 'status when splitting a commit' '
216
215
ONTO=$(git rev-parse --short HEAD~3) &&
217
216
git rebase -i HEAD~3 &&
218
217
git reset HEAD^ &&
219
- TGT=$(git rev-parse --short HEAD) &&
220
218
cat >expected <<-EOF &&
221
- # HEAD detached at $TGT
219
+ # rebase in progress; onto $ONTO
222
220
# You are currently splitting a commit while rebasing branch ' \' ' split_commit' \' ' on ' \' ' $ONTO' \' ' .
223
221
# (Once your working directory is clean, run "git rebase --continue")
224
222
#
@@ -246,11 +244,10 @@ test_expect_success 'status after editing the last commit with --amend during a
246
244
export FAKE_LINES &&
247
245
test_when_finished "git rebase --abort" &&
248
246
ONTO=$(git rev-parse --short HEAD~3) &&
249
- TGT=$(git rev-parse --short three_amend) &&
250
247
git rebase -i HEAD~3 &&
251
248
git commit --amend -m "foo" &&
252
249
cat >expected <<-EOF &&
253
- # HEAD detached from $TGT
250
+ # rebase in progress; onto $ONTO
254
251
# You are currently editing a commit while rebasing branch ' \' ' amend_last' \' ' on ' \' ' $ONTO' \' ' .
255
252
# (use "git commit --amend" to amend the current commit)
256
253
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -280,7 +277,7 @@ test_expect_success 'status: (continue first edit) second edit' '
280
277
git rebase -i HEAD~3 &&
281
278
git rebase --continue &&
282
279
cat >expected <<-EOF &&
283
- # HEAD detached from $ONTO
280
+ # rebase in progress; onto $ONTO
284
281
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
285
282
# (use "git commit --amend" to amend the current commit)
286
283
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -302,7 +299,7 @@ test_expect_success 'status: (continue first edit) second edit and split' '
302
299
git rebase --continue &&
303
300
git reset HEAD^ &&
304
301
cat >expected <<-EOF &&
305
- # HEAD detached from $ONTO
302
+ # rebase in progress; onto $ONTO
306
303
# You are currently splitting a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
307
304
# (Once your working directory is clean, run "git rebase --continue")
308
305
#
@@ -329,7 +326,7 @@ test_expect_success 'status: (continue first edit) second edit and amend' '
329
326
git rebase --continue &&
330
327
git commit --amend -m "foo" &&
331
328
cat >expected <<-EOF &&
332
- # HEAD detached from $ONTO
329
+ # rebase in progress; onto $ONTO
333
330
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
334
331
# (use "git commit --amend" to amend the current commit)
335
332
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -351,7 +348,7 @@ test_expect_success 'status: (amend first edit) second edit' '
351
348
git commit --amend -m "a" &&
352
349
git rebase --continue &&
353
350
cat >expected <<-EOF &&
354
- # HEAD detached from $ONTO
351
+ # rebase in progress; onto $ONTO
355
352
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
356
353
# (use "git commit --amend" to amend the current commit)
357
354
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -374,7 +371,7 @@ test_expect_success 'status: (amend first edit) second edit and split' '
374
371
git rebase --continue &&
375
372
git reset HEAD^ &&
376
373
cat >expected <<-EOF &&
377
- # HEAD detached from $ONTO
374
+ # rebase in progress; onto $ONTO
378
375
# You are currently splitting a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
379
376
# (Once your working directory is clean, run "git rebase --continue")
380
377
#
@@ -402,7 +399,7 @@ test_expect_success 'status: (amend first edit) second edit and amend' '
402
399
git rebase --continue &&
403
400
git commit --amend -m "d" &&
404
401
cat >expected <<-EOF &&
405
- # HEAD detached from $ONTO
402
+ # rebase in progress; onto $ONTO
406
403
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
407
404
# (use "git commit --amend" to amend the current commit)
408
405
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -426,7 +423,7 @@ test_expect_success 'status: (split first edit) second edit' '
426
423
git commit -m "e" &&
427
424
git rebase --continue &&
428
425
cat >expected <<-EOF &&
429
- # HEAD detached from $ONTO
426
+ # rebase in progress; onto $ONTO
430
427
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
431
428
# (use "git commit --amend" to amend the current commit)
432
429
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -451,7 +448,7 @@ test_expect_success 'status: (split first edit) second edit and split' '
451
448
git rebase --continue &&
452
449
git reset HEAD^ &&
453
450
cat >expected <<-EOF &&
454
- # HEAD detached from $ONTO
451
+ # rebase in progress; onto $ONTO
455
452
# You are currently splitting a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
456
453
# (Once your working directory is clean, run "git rebase --continue")
457
454
#
@@ -481,7 +478,7 @@ test_expect_success 'status: (split first edit) second edit and amend' '
481
478
git rebase --continue &&
482
479
git commit --amend -m "h" &&
483
480
cat >expected <<-EOF &&
484
- # HEAD detached from $ONTO
481
+ # rebase in progress; onto $ONTO
485
482
# You are currently editing a commit while rebasing branch ' \' ' several_edits' \' ' on ' \' ' $ONTO' \' ' .
486
483
# (use "git commit --amend" to amend the current commit)
487
484
# (use "git rebase --continue" once you are satisfied with your changes)
@@ -601,7 +598,7 @@ test_expect_success 'status when rebase conflicts with statushints disabled' '
601
598
ONTO=$(git rev-parse --short HEAD^^) &&
602
599
test_must_fail git rebase HEAD^ --onto HEAD^^ &&
603
600
cat >expected <<-EOF &&
604
- # HEAD detached at $ONTO
601
+ # rebase in progress; onto $ONTO
605
602
# You are currently rebasing branch ' \' ' statushints_disabled' \' ' on ' \' ' $ONTO' \' ' .
606
603
#
607
604
# Unmerged paths:
0 commit comments