X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=git.c;h=ed66c660d15010af9a8b0c2ea1da8839e316e1db;hb=07fd82d3a7639a6c88d4342be36e74e4496bde58;hp=d33f9b32a2895ef9f062f9fda487588daac6f5bc;hpb=32e820bdc5ca66d53605bfdcb0751b21a2372de2;p=~andy%2Fgit diff --git a/git.c b/git.c index d33f9b32a..ed66c660d 100644 --- a/git.c +++ b/git.c @@ -135,6 +135,14 @@ static int handle_options(const char ***argv, int *argc, int *envchanged) git_config_push_parameter((*argv)[1]); (*argv)++; (*argc)--; + } else if (!strcmp(cmd, "--literal-pathspecs")) { + setenv(GIT_LITERAL_PATHSPECS_ENVIRONMENT, "1", 1); + if (envchanged) + *envchanged = 1; + } else if (!strcmp(cmd, "--no-literal-pathspecs")) { + setenv(GIT_LITERAL_PATHSPECS_ENVIRONMENT, "0", 1); + if (envchanged) + *envchanged = 1; } else { fprintf(stderr, "Unknown option: %s\n", cmd); usage(git_usage_string);