Merge branch 'maint'
* maint: Teach "git diff" to honour --[no-]ext-diff
This commit is contained in:
@ -43,6 +43,13 @@ test_expect_success 'GIT_EXTERNAL_DIFF environment should apply only to diff' '
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'GIT_EXTERNAL_DIFF environment and --no-ext-diff' '
|
||||
|
||||
GIT_EXTERNAL_DIFF=echo git diff --no-ext-diff |
|
||||
grep "^diff --git a/file b/file"
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'diff attribute' '
|
||||
|
||||
git config diff.parrot.command echo &&
|
||||
@ -68,6 +75,13 @@ test_expect_success 'diff attribute should apply only to diff' '
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'diff attribute and --no-ext-diff' '
|
||||
|
||||
git diff --no-ext-diff |
|
||||
grep "^diff --git a/file b/file"
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'diff attribute' '
|
||||
|
||||
git config --unset diff.parrot.command &&
|
||||
@ -94,6 +108,13 @@ test_expect_success 'diff attribute should apply only to diff' '
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'diff attribute and --no-ext-diff' '
|
||||
|
||||
git diff --no-ext-diff |
|
||||
grep "^diff --git a/file b/file"
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'no diff with -diff' '
|
||||
echo >.gitattributes "file -diff" &&
|
||||
git diff | grep Binary
|
||||
|
Reference in New Issue
Block a user