125
munge_cr append dir/two &&
126
git update-index -- one dir/two &&
127
differs=$(git diff-index --cached HEAD) &&
128
- verbose test -z "$differs"
128
+ test -z "$differs"
129
130
'
131
138
munge_cr append dir/two &&
139
git update-index -- one dir/two &&
140
differs=$(git diff-index --cached HEAD) &&
141
- verbose test -z "$differs"
141
+ test -z "$differs"
142
143
'
144
153
test "$one" = $(git hash-object --stdin <one) &&
154
test "$two" = $(git hash-object --stdin <dir/two) &&
155
differs=$(git diff-index --cached HEAD) &&
156
- verbose test -z "$differs"
156
+ test -z "$differs"
157
'
158
159
test_expect_success 'checkout with autocrlf=input' '
167
test "$one" = $(git hash-object --stdin <one) &&
168
test "$two" = $(git hash-object --stdin <dir/two) &&
169
differs=$(git diff-index --cached HEAD) &&
170
- verbose test -z "$differs"
170
+ test -z "$differs"
171
'
172
173
test_expect_success 'apply patch (autocrlf=input)' '
177
git read-tree --reset -u HEAD &&
178
179
git apply patch.file &&
180
- verbose test "$patched" = "$(git hash-object --stdin <one)"
180
+ test "$patched" = "$(git hash-object --stdin <one)"
181
'
182
183
test_expect_success 'apply patch --cached (autocrlf=input)' '
187
git read-tree --reset -u HEAD &&
188
189
git apply --cached patch.file &&
190
- verbose test "$patched" = $(git rev-parse :one)
190
+ test "$patched" = $(git rev-parse :one)
191
'
192
193
test_expect_success 'apply patch --index (autocrlf=input)' '
197
git read-tree --reset -u HEAD &&
198
199
git apply --index patch.file &&
200
- verbose test "$patched" = $(git rev-parse :one) &&
201
- verbose test "$patched" = $(git hash-object --stdin <one)
200
+ test "$patched" = $(git rev-parse :one) &&
201
+ test "$patched" = $(git hash-object --stdin <one)
202
'
203
204
test_expect_success 'apply patch (autocrlf=true)' '
208
git read-tree --reset -u HEAD &&
209
210
git apply patch.file &&
211
- verbose test "$patched" = "$(remove_cr <one | git hash-object --stdin)"
211
+ test "$patched" = "$(remove_cr <one | git hash-object --stdin)"
212
'
213
214
test_expect_success 'apply patch --cached (autocrlf=true)' '
218
git read-tree --reset -u HEAD &&
219
220
git apply --cached patch.file &&
221
- verbose test "$patched" = $(git rev-parse :one)
221
+ test "$patched" = $(git rev-parse :one)
222
'
223
224
test_expect_success 'apply patch --index (autocrlf=true)' '
228
git read-tree --reset -u HEAD &&
229
230
git apply --index patch.file &&
231
- verbose test "$patched" = $(git rev-parse :one) &&
232
- verbose test "$patched" = "$(remove_cr <one | git hash-object --stdin)"
231
+ test "$patched" = $(git rev-parse :one) &&
232
+ test "$patched" = "$(remove_cr <one | git hash-object --stdin)"
233
'
234
235
test_expect_success '.gitattributes says two is binary' '
240
git read-tree --reset -u HEAD &&
241
242
! has_cr dir/two &&
243
- verbose has_cr one &&
243
+ has_cr one &&
244
! has_cr three
245
'
246
259
echo "t* crlf" >.gitattributes &&
260
git read-tree --reset -u HEAD &&
261
262
- verbose has_cr dir/two &&
263
- verbose has_cr three
262
+ has_cr dir/two &&
263
+ has_cr three
264
'
265
266
test_expect_success 'in-tree .gitattributes (1)' '
273
git read-tree --reset -u HEAD &&
274
275
! has_cr one &&
276
- verbose has_cr three
276
+ has_cr three
277
'
278
279
test_expect_success 'in-tree .gitattributes (2)' '
283
git checkout-index -f -q -u -a &&
284
285
! has_cr one &&
286
- verbose has_cr three
286
+ has_cr three
287
'
288
289
test_expect_success 'in-tree .gitattributes (3)' '
294
git checkout-index -u one dir/two three &&
295
296
! has_cr one &&
297
- verbose has_cr three
297
+ has_cr three
298
'
299
300
test_expect_success 'in-tree .gitattributes (4)' '
305
git checkout-index -u .gitattributes &&
306
307
! has_cr one &&
308
- verbose has_cr three
308
+ has_cr three
309
'
310
311
test_expect_success 'checkout with existing .gitattributes' '