Merge branch 'da/difftool-test'
Makes sure "difftool" options can be given in any order. By David Aguilar * da/difftool-test: t7800: Test difftool passing arguments to diff
This commit is contained in:
commit
b22d301b24
@ -83,6 +83,17 @@ test_expect_success PERL 'difftool ignores bad --tool values' '
|
||||
test "$diff" = ""
|
||||
'
|
||||
|
||||
test_expect_success PERL 'difftool forwards arguments to diff' '
|
||||
>for-diff &&
|
||||
git add for-diff &&
|
||||
echo changes>for-diff &&
|
||||
git add for-diff &&
|
||||
diff=$(git difftool --cached --no-prompt -- for-diff) &&
|
||||
test "$diff" = "" &&
|
||||
git reset -- for-diff &&
|
||||
rm for-diff
|
||||
'
|
||||
|
||||
test_expect_success PERL 'difftool honors --gui' '
|
||||
git config merge.tool bogus-tool &&
|
||||
git config diff.tool bogus-tool &&
|
||||
|
Loading…
Reference in New Issue
Block a user