aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-10-17 10:26:51 -0700
committerJunio C Hamano <gitster@pobox.com>2012-10-17 10:26:51 -0700
commit8c4bcd34bd194d7932a153f464cbc6ada7b27b46 (patch)
tree17331f7107c0353a5adac2451fc6e817ce16e902 /t
parent19100d3f7db17a85dc58265ae5388b1bf483f44f (diff)
parente0e2065f74500119d5e12524992273de362acd30 (diff)
downloadgit-8c4bcd34bd194d7932a153f464cbc6ada7b27b46.tar.gz
git-8c4bcd34bd194d7932a153f464cbc6ada7b27b46.tar.xz
Merge branch 'jc/ll-merge-binary-ours' into maint
* jc/ll-merge-binary-ours: ll-merge: warn about inability to merge binary files only when we can't attr: "binary" attribute should choose built-in "binary" merge driver merge: teach -Xours/-Xtheirs to binary ll-merge driver
Diffstat (limited to 't')
-rwxr-xr-xt/t6037-merge-ours-theirs.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/t6037-merge-ours-theirs.sh b/t/t6037-merge-ours-theirs.sh
index 2cf42c73f..3889eca4a 100755
--- a/t/t6037-merge-ours-theirs.sh
+++ b/t/t6037-merge-ours-theirs.sh
@@ -53,7 +53,19 @@ test_expect_success 'recursive favouring ours' '
! grep 1 file
'
-test_expect_success 'pull with -X' '
+test_expect_success 'binary file with -Xours/-Xtheirs' '
+ echo file binary >.gitattributes &&
+
+ git reset --hard master &&
+ git merge -s recursive -X theirs side &&
+ git diff --exit-code side HEAD -- file &&
+
+ git reset --hard master &&
+ git merge -s recursive -X ours side &&
+ git diff --exit-code master HEAD -- file
+'
+
+test_expect_success 'pull passes -X to underlying merge' '
git reset --hard master && git pull -s recursive -Xours . side &&
git reset --hard master && git pull -s recursive -X ours . side &&
git reset --hard master && git pull -s recursive -Xtheirs . side &&