From: Jeff King Date: Fri, 19 May 2017 12:55:11 +0000 (-0400) Subject: handle_revision_arg: record modes for "a..b" endpoints X-Git-Tag: v2.13.2~11^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/101dd4de16eea300a59e432452fd4fc06e1ac7f2?ds=sidebyside;hp=101dd4de16eea300a59e432452fd4fc06e1ac7f2 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 Signed-off-by: Junio C Hamano ---