@@ -117,53 +117,61 @@ test_atime_is_ignored () {
117
117
! grep -v +0000 authortime
118
118
}
119
119
120
- test_expect_success ' --ignore -date works with apply backend' '
120
+ test_expect_success ' --reset-author -date works with apply backend' '
121
121
git commit --amend --date="$GIT_AUTHOR_DATE" &&
122
- git rebase --apply --ignore -date HEAD^ &&
122
+ git rebase --apply --reset-author -date HEAD^ &&
123
123
test_atime_is_ignored -1
124
124
'
125
125
126
- test_expect_success ' --ignore -date works with merge backend' '
126
+ test_expect_success ' --reset-author -date works with merge backend' '
127
127
git commit --amend --date="$GIT_AUTHOR_DATE" &&
128
- git rebase --ignore -date -m HEAD^ &&
128
+ git rebase --reset-author -date -m HEAD^ &&
129
129
test_atime_is_ignored -1
130
130
'
131
131
132
- test_expect_success ' --ignore -date works after conflict resolution' '
133
- test_must_fail git rebase --ignore -date -m \
132
+ test_expect_success ' --reset-author -date works after conflict resolution' '
133
+ test_must_fail git rebase --reset-author -date -m \
134
134
--onto commit2^^ commit2^ commit2 &&
135
135
echo resolved >foo &&
136
136
git add foo &&
137
137
git rebase --continue &&
138
138
test_atime_is_ignored -1
139
139
'
140
140
141
- test_expect_success ' --ignore -date works with rebase -r' '
141
+ test_expect_success ' --reset-author -date works with rebase -r' '
142
142
git checkout side &&
143
143
git merge --no-ff commit3 &&
144
- git rebase -r --root --ignore -date &&
144
+ git rebase -r --root --reset-author -date &&
145
145
test_atime_is_ignored
146
146
'
147
147
148
- test_expect_success ' --ignore -date with --committer-date-is-author-date works' '
148
+ test_expect_success ' --reset-author -date with --committer-date-is-author-date works' '
149
149
test_must_fail git rebase -m --committer-date-is-author-date \
150
- --ignore -date --onto commit2^^ commit2^ commit3 &&
150
+ --reset-author -date --onto commit2^^ commit2^ commit3 &&
151
151
git checkout --theirs foo &&
152
152
git add foo &&
153
153
git rebase --continue &&
154
154
test_ctime_is_atime -2 &&
155
155
test_atime_is_ignored -2
156
156
'
157
157
158
- test_expect_success ' --ignore -date --committer-date-is-author-date works when forking merge' '
158
+ test_expect_success ' --reset-author -date --committer-date-is-author-date works when forking merge' '
159
159
GIT_SEQUENCE_EDITOR="echo \"merge -C $(git rev-parse HEAD) commit3\">" \
160
160
PATH="./test-bin:$PATH" git rebase -i --strategy=test \
161
- --ignore-date --committer-date-is -author-date \
162
- side side &&
161
+ --reset -author-date \
162
+ --committer-date-is-author-date side side &&
163
163
test_ctime_is_atime -1 &&
164
164
test_atime_is_ignored -1
165
165
'
166
166
167
+ test_expect_success ' --ignore-date is an alias for --reset-author-date' '
168
+ git commit --amend --date="$GIT_AUTHOR_DATE" &&
169
+ git rebase --apply --ignore-date HEAD^ &&
170
+ git commit --allow-empty -m empty --date="$GIT_AUTHOR_DATE" &&
171
+ git rebase -m --ignore-date HEAD^ &&
172
+ test_atime_is_ignored -2
173
+ '
174
+
167
175
# This must be the last test in this file
168
176
test_expect_success ' $EDITOR and friends are unchanged' '
169
177
test_editor_unchanged
0 commit comments