diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-06-06 14:27:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-06 14:27:35 -0700 |
commit | 05781d37fa43b5dada77d1bcfd4cdc42742e7421 (patch) | |
tree | 671bb97f46944b084b878192bc3464bd5c13b1cb /builtin/diff-index.c | |
parent | More topics for 2.8.4 (diff) | |
parent | diff: run arguments through precompose_argv (diff) | |
download | tgif-05781d37fa43b5dada77d1bcfd4cdc42742e7421.tar.xz |
Merge branch 'ar/diff-args-osx-precompose' into maint
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-index.c')
-rw-r--r-- | builtin/diff-index.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/diff-index.c b/builtin/diff-index.c index d979824f93..1af373d002 100644 --- a/builtin/diff-index.c +++ b/builtin/diff-index.c @@ -21,6 +21,7 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix) gitmodules_config(); git_config(git_diff_basic_config, NULL); /* no "diff" UI options */ rev.abbrev = 0; + precompose_argv(argc, argv); argc = setup_revisions(argc, argv, &rev, NULL); for (i = 1; i < argc; i++) { |