On Fri, Mar 15, 2013 at 2:06 AM, Nguyễn Thái Ngọc Duy <[email protected]> wrote:
> +GIT_GLOB_PATHSPECS::
> + Setting this variable to `1` will cause git to treat all
> + pathspecs as glob patterns (aka "glob" magic).
Per recent git -> Git normalization, probably: s/git/Git/
> +
> +GIT_NOGLOB_PATHSPECS::
> + Setting this variable to `1` will cause git to treat all
> + pathspecs as literal (aka "literal" magic).
Ditto: s/git/Git/
> @@ -103,6 +105,22 @@ static unsigned prefix_pathspec(struct pathspec_item
> *item,
> if (literal_global)
> global_magic |= PATHSPEC_LITERAL;
>
> + if (glob_global < 0)
> + glob_global = git_env_bool(GIT_GLOB_PATHSPECS_ENVIRONMENT, 0);
> + if (glob_global)
> + global_magic |= PATHSPEC_GLOB;
> +
> + if (noglob_global < 0)
> + noglob_global =
> git_env_bool(GIT_NOGLOB_PATHSPECS_ENVIRONMENT, 0);
> +
> + if (glob_global && noglob_global)
> + die(_("global 'glob' and 'noglob' pathspec settings are
> incompatible"));
> +
> + if ((global_magic & PATHSPEC_LITERAL) &&
> + (global_magic & ~PATHSPEC_LITERAL))
> + die(_("global 'literal' pathspec setting is incompatiable "
> + "with all other global pathspec settings"));
s/incompatiable/incompatible/
-- ES
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html