summaryrefslogtreecommitdiff
path: root/builtin/diff-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-05-23 14:54:35 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-05-23 14:54:35 -0700
commit53c4b3ed0e4c43fcd95473733b61e560ee21b4bc (patch)
tree744a5242a62b998b58a1aa8702603cf47b6d76e2 /builtin/diff-tree.c
parentMerge branch 'jc/doc-lint' (diff)
parentdiff: run arguments through precompose_argv (diff)
downloadtgif-53c4b3ed0e4c43fcd95473733b61e560ee21b4bc.tar.xz
Merge branch 'ar/diff-args-osx-precompose'
Many commands normalize command line arguments from NFD to NFC variant of UTF-8 on OSX, but commands in the "diff" family did not, causing "git diff $path" to complain that no such path is known to Git. They have been taught to do the normalization. * ar/diff-args-osx-precompose: diff: run arguments through precompose_argv
Diffstat (limited to 'builtin/diff-tree.c')
-rw-r--r--builtin/diff-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/diff-tree.c b/builtin/diff-tree.c
index 2a12b81e06..806dd7a885 100644
--- a/builtin/diff-tree.c
+++ b/builtin/diff-tree.c
@@ -114,6 +114,8 @@ int cmd_diff_tree(int argc, const char **argv, const char *prefix)
opt->disable_stdin = 1;
memset(&s_r_opt, 0, sizeof(s_r_opt));
s_r_opt.tweak = diff_tree_tweak_rev;
+
+ precompose_argv(argc, argv);
argc = setup_revisions(argc, argv, opt, &s_r_opt);
while (--argc > 0) {