Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-19 15:55:11 +0300
committerJunio C Hamano <gitster@pobox.com>2017-05-24 04:59:27 +0300
commit101dd4de16eea300a59e432452fd4fc06e1ac7f2 (patch)
tree674c8cc7e712dfa9a458c63e3a14c1df54cec7e2 /t/t4063-diff-blobs.sh
parent74e89110a38fb52be29615a1468e86fb75077433 (diff)
handle_revision_arg: record modes for "a..b" endpoints
The "a..b" revision syntax was designed to handle commits, so it doesn't bother to record any mode we find while traversing a "tree:path" endpoint. These days "git diff" can diff blobs using either "a:path..b:path" (with dots) or "a:path b:path" (without), but the two behave inconsistently, as the with-dots version fails to notice the mode. Let's teach the dot-dot range parser to record modes; it doesn't cost us anything, and it makes this case work. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4063-diff-blobs.sh')
-rwxr-xr-xt/t4063-diff-blobs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4063-diff-blobs.sh b/t/t4063-diff-blobs.sh
index 90c6f6b85b..df9c35b2dd 100755
--- a/t/t4063-diff-blobs.sh
+++ b/t/t4063-diff-blobs.sh
@@ -71,7 +71,7 @@ test_expect_success 'index of ranged tree:path diff' '
test_expect_failure 'ranged tree:path diff uses filenames as paths' '
check_paths one two
'
-test_expect_failure 'ranged tree:path diff shows mode change' '
+test_expect_success 'ranged tree:path diff shows mode change' '
check_mode 100644 100755
'