Add the diff option --no-defaults
[git/dscho.git] / t / t4037-diff-default-options.sh
blobf57d65f1bf9ada33d5c73acdc492fe6a71512a77
1 #!/bin/sh
3 test_description='default options for diff'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 test_commit a &&
9 test_commit b
12 test_expect_success 'diff.defaultOptions' '
13 git config diff.defaultOptions --raw &&
14 git diff a > output &&
15 grep ^: output &&
16 test 1 = $(wc -l < output)
19 test_expect_success '--no-defaults' '
20 git diff --no-defaults > output &&
21 ! grep ^: output
24 test_done