diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-14 15:36:09 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 12:14:38 -0700 |
commit | 93d935371654faf2956a4c37c1ca46f3195ee832 (patch) | |
tree | 913861fd9f039c86e4f3a8b3ea1b51391d72d05d /git.c | |
parent | bd30c2e48432c692f9e77d3529c9cf25117066bb (diff) | |
download | git-93d935371654faf2956a4c37c1ca46f3195ee832.tar.gz |
parse_pathspec: accept :(icase)path syntax
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)--; |