summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-04-15 22:52:04 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-15 22:52:04 -0700
commitb22d301b24b55dc59549833d285decbdd9b1ca53 (patch)
tree2841295804d56eb193bc8f2bb3aac628fe3b577d /t
parentMerge branch 'zj/test-cred-helper-nicer-prove' (diff)
parentt7800: Test difftool passing arguments to diff (diff)
downloadtgif-b22d301b24b55dc59549833d285decbdd9b1ca53.tar.xz
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
Diffstat (limited to 't')
-rwxr-xr-xt/t7800-difftool.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh
index 4fb4c9384a..2763d795f0 100755
--- a/t/t7800-difftool.sh
+++ b/t/t7800-difftool.sh
@@ -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 &&