parse_pathspec: accept :(icase)path syntax
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index 25096755f44be3a5b297d09885570cd01d0a5188..cebf8827da1a614d601a500564cf77e7f23eda10 100644 (file)
--- a/git.c
+++ b/git.c
@@ -155,6 +155,10 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
                        setenv(GIT_NOGLOB_PATHSPECS_ENVIRONMENT, "1", 1);
                        if (envchanged)
                                *envchanged = 1;
+               } else if (!strcmp(cmd, "--icase-pathspecs")) {
+                       setenv(GIT_ICASE_PATHSPECS_ENVIRONMENT, "1", 1);
+                       if (envchanged)
+                               *envchanged = 1;
                } else if (!strcmp(cmd, "--shallow-file")) {
                        (*argv)++;
                        (*argc)--;