diff: run arguments through precompose_argv
[gitweb.git] / builtin / diff.c
index 0f247d24008a4dc7ba5958e716c13f7582a820f1..5b8039cbc7d51a52f0a9bd3e7cc84e722e606555 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (c) 2006 Junio C Hamano
  */
 #include "cache.h"
+#include "lockfile.h"
 #include "color.h"
 #include "commit.h"
 #include "blob.h"
@@ -318,6 +319,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
        if (!no_index)
                gitmodules_config();
        git_config(git_diff_ui_config, NULL);
+       precompose_argv(argc, argv);
 
        init_revisions(&rev, prefix);