@@ -166,52 +166,52 @@ test_expect_success 'rebase works with format.useAutoBase' '
166
166
'
167
167
168
168
test_expect_success ' default to common base in @{upstream}s reflog if no upstream arg (--merge)' '
169
- git checkout -b default -base master &&
170
- git checkout -b default topic &&
171
- git config branch.default .remote . &&
172
- git config branch.default .merge refs/heads/default -base &&
169
+ git checkout -b def -base master &&
170
+ git checkout -b def topic &&
171
+ git config branch.def .remote . &&
172
+ git config branch.def .merge refs/heads/def -base &&
173
173
git rebase --merge &&
174
- git rev-parse --verify default -base >expect &&
175
- git rev-parse default ~1 >actual &&
174
+ git rev-parse --verify def -base >expect &&
175
+ git rev-parse def ~1 >actual &&
176
176
test_cmp expect actual &&
177
- git checkout default -base &&
177
+ git checkout def -base &&
178
178
git reset --hard HEAD^ &&
179
- git checkout default &&
179
+ git checkout def &&
180
180
git rebase --merge &&
181
- git rev-parse --verify default -base >expect &&
182
- git rev-parse default ~1 >actual &&
181
+ git rev-parse --verify def -base >expect &&
182
+ git rev-parse def ~1 >actual &&
183
183
test_cmp expect actual
184
184
'
185
185
186
186
test_expect_success ' default to common base in @{upstream}s reflog if no upstream arg (--apply)' '
187
- git checkout -B default -base master &&
188
- git checkout -B default topic &&
189
- git config branch.default .remote . &&
190
- git config branch.default .merge refs/heads/default -base &&
187
+ git checkout -B def -base master &&
188
+ git checkout -B def topic &&
189
+ git config branch.def .remote . &&
190
+ git config branch.def .merge refs/heads/def -base &&
191
191
git rebase --apply &&
192
- git rev-parse --verify default -base >expect &&
193
- git rev-parse default ~1 >actual &&
192
+ git rev-parse --verify def -base >expect &&
193
+ git rev-parse def ~1 >actual &&
194
194
test_cmp expect actual &&
195
- git checkout default -base &&
195
+ git checkout def -base &&
196
196
git reset --hard HEAD^ &&
197
- git checkout default &&
197
+ git checkout def &&
198
198
git rebase --apply &&
199
- git rev-parse --verify default -base >expect &&
200
- git rev-parse default ~1 >actual &&
199
+ git rev-parse --verify def -base >expect &&
200
+ git rev-parse def ~1 >actual &&
201
201
test_cmp expect actual
202
202
'
203
203
204
204
test_expect_success ' cherry-picked commits and fork-point work together' '
205
- git checkout default -base &&
205
+ git checkout def -base &&
206
206
echo Amended >A &&
207
207
git commit -a --no-edit --amend &&
208
208
test_commit B B &&
209
209
test_commit new_B B "New B" &&
210
210
test_commit C C &&
211
- git checkout default &&
212
- git reset --hard default -base@{4} &&
211
+ git checkout def &&
212
+ git reset --hard def -base@{4} &&
213
213
test_commit D D &&
214
- git cherry-pick -2 default -base^ &&
214
+ git cherry-pick -2 def -base^ &&
215
215
test_commit final_B B "Final B" &&
216
216
git rebase &&
217
217
echo Amended >expect &&
0 commit comments