77
ONTO=$(git rev-parse --short HEAD^^) &&
78
test_must_fail git rebase HEAD^ --onto HEAD^^ &&
79
cat >expected <<-EOF &&
80
- # HEAD detached at $ONTO
80
+ # rebase in progress; onto $ONTO
81
# You are currently rebasing branch '\''rebase_conflicts'\'' on '\''$ONTO'\''.
82
# (fix conflicts and then run "git rebase --continue")
83
# (use "git rebase --skip" to skip this patch)
104
echo three >main.txt &&
105
git add main.txt &&
106
cat >expected <<-EOF &&
107
- # HEAD detached at $ONTO
107
+ # rebase in progress; onto $ONTO
108
# You are currently rebasing branch '\''rebase_conflicts'\'' on '\''$ONTO'\''.
109
# (all conflicts fixed: run "git rebase --continue")
110
#
136
ONTO=$(git rev-parse --short rebase_i_conflicts) &&
137
test_must_fail git rebase -i rebase_i_conflicts &&
138
cat >expected <<-EOF &&
139
- # HEAD detached at $ONTO
139
+ # rebase in progress; onto $ONTO
140
# You are currently rebasing branch '\''rebase_i_conflicts_second'\'' on '\''$ONTO'\''.
141
# (fix conflicts and then run "git rebase --continue")
142
# (use "git rebase --skip" to skip this patch)
162
test_must_fail git rebase -i rebase_i_conflicts &&
163
git add main.txt &&
164
cat >expected <<-EOF &&
165
- # HEAD detached at $ONTO
165
+ # rebase in progress; onto $ONTO
166
# You are currently rebasing branch '\''rebase_i_conflicts_second'\'' on '\''$ONTO'\''.
167
# (all conflicts fixed: run "git rebase --continue")
168
#
188
export FAKE_LINES &&
189
test_when_finished "git rebase --abort" &&
190
ONTO=$(git rev-parse --short HEAD~2) &&
191
- TGT=$(git rev-parse --short two_rebase_i) &&
191
git rebase -i HEAD~2 &&
192
cat >expected <<-EOF &&
194
- # HEAD detached from $TGT
193
+ # rebase in progress; onto $ONTO
194
# You are currently editing a commit while rebasing branch '\''rebase_i_edit'\'' on '\''$ONTO'\''.
195
# (use "git commit --amend" to amend the current commit)
196
# (use "git rebase --continue" once you are satisfied with your changes)
215
ONTO=$(git rev-parse --short HEAD~3) &&
216
git rebase -i HEAD~3 &&
217
git reset HEAD^ &&
219
- TGT=$(git rev-parse --short HEAD) &&
218
cat >expected <<-EOF &&
221
- # HEAD detached at $TGT
219
+ # rebase in progress; onto $ONTO
220
# You are currently splitting a commit while rebasing branch '\''split_commit'\'' on '\''$ONTO'\''.
221
# (Once your working directory is clean, run "git rebase --continue")
222
#
244
export FAKE_LINES &&
245
test_when_finished "git rebase --abort" &&
246
ONTO=$(git rev-parse --short HEAD~3) &&
249
- TGT=$(git rev-parse --short three_amend) &&
247
git rebase -i HEAD~3 &&
248
git commit --amend -m "foo" &&
249
cat >expected <<-EOF &&
253
- # HEAD detached from $TGT
250
+ # rebase in progress; onto $ONTO
251
# You are currently editing a commit while rebasing branch '\''amend_last'\'' on '\''$ONTO'\''.
252
# (use "git commit --amend" to amend the current commit)
253
# (use "git rebase --continue" once you are satisfied with your changes)
277
git rebase -i HEAD~3 &&
278
git rebase --continue &&
279
cat >expected <<-EOF &&
283
- # HEAD detached from $ONTO
280
+ # rebase in progress; onto $ONTO
281
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
282
# (use "git commit --amend" to amend the current commit)
283
# (use "git rebase --continue" once you are satisfied with your changes)
299
git rebase --continue &&
300
git reset HEAD^ &&
301
cat >expected <<-EOF &&
305
- # HEAD detached from $ONTO
302
+ # rebase in progress; onto $ONTO
303
# You are currently splitting a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
304
# (Once your working directory is clean, run "git rebase --continue")
305
#
326
git rebase --continue &&
327
git commit --amend -m "foo" &&
328
cat >expected <<-EOF &&
332
- # HEAD detached from $ONTO
329
+ # rebase in progress; onto $ONTO
330
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
331
# (use "git commit --amend" to amend the current commit)
332
# (use "git rebase --continue" once you are satisfied with your changes)
348
git commit --amend -m "a" &&
349
git rebase --continue &&
350
cat >expected <<-EOF &&
354
- # HEAD detached from $ONTO
351
+ # rebase in progress; onto $ONTO
352
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
353
# (use "git commit --amend" to amend the current commit)
354
# (use "git rebase --continue" once you are satisfied with your changes)
371
git rebase --continue &&
372
git reset HEAD^ &&
373
cat >expected <<-EOF &&
377
- # HEAD detached from $ONTO
374
+ # rebase in progress; onto $ONTO
375
# You are currently splitting a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
376
# (Once your working directory is clean, run "git rebase --continue")
377
#
399
git rebase --continue &&
400
git commit --amend -m "d" &&
401
cat >expected <<-EOF &&
405
- # HEAD detached from $ONTO
402
+ # rebase in progress; onto $ONTO
403
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
404
# (use "git commit --amend" to amend the current commit)
405
# (use "git rebase --continue" once you are satisfied with your changes)
423
git commit -m "e" &&
424
git rebase --continue &&
425
cat >expected <<-EOF &&
429
- # HEAD detached from $ONTO
426
+ # rebase in progress; onto $ONTO
427
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
428
# (use "git commit --amend" to amend the current commit)
429
# (use "git rebase --continue" once you are satisfied with your changes)
448
git rebase --continue &&
449
git reset HEAD^ &&
450
cat >expected <<-EOF &&
454
- # HEAD detached from $ONTO
451
+ # rebase in progress; onto $ONTO
452
# You are currently splitting a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
453
# (Once your working directory is clean, run "git rebase --continue")
454
#
478
git rebase --continue &&
479
git commit --amend -m "h" &&
480
cat >expected <<-EOF &&
484
- # HEAD detached from $ONTO
481
+ # rebase in progress; onto $ONTO
482
# You are currently editing a commit while rebasing branch '\''several_edits'\'' on '\''$ONTO'\''.
483
# (use "git commit --amend" to amend the current commit)
484
# (use "git rebase --continue" once you are satisfied with your changes)
598
ONTO=$(git rev-parse --short HEAD^^) &&
599
test_must_fail git rebase HEAD^ --onto HEAD^^ &&
600
cat >expected <<-EOF &&
604
- # HEAD detached at $ONTO
601
+ # rebase in progress; onto $ONTO
602
# You are currently rebasing branch '\''statushints_disabled'\'' on '\''$ONTO'\''.
603
#
604
# Unmerged paths: