X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=git.c;h=ed66c660d15010af9a8b0c2ea1da8839e316e1db;hb=d4c655271932cd8999a2d8634bde24602c591fe7;hp=d33f9b32a2895ef9f062f9fda487588daac6f5bc;hpb=7842c44ccb89dc6c88e67bcc559bc9b38c617e0c;p=git.git 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);