mirror of
https://github.com/git/git.git
synced 2026-03-14 18:59:04 +01:00
Merge branch 'jc/pickaxe-grep' into next
* jc/pickaxe-grep: diff/log -G<pattern>: tests git log/diff: add -G<regexp> that greps in the patch text diff: pass the entire diff-options to diffcore_pickaxe() gitdiffcore doc: update pickaxe description
This commit is contained in:
11
diff.c
11
diff.c
@@ -3271,12 +3271,17 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
|
||||
}
|
||||
else if ((argcount = short_opt('S', av, &optarg))) {
|
||||
options->pickaxe = optarg;
|
||||
options->pickaxe_opts |= DIFF_PICKAXE_KIND_S;
|
||||
return argcount;
|
||||
} else if ((argcount = short_opt('G', av, &optarg))) {
|
||||
options->pickaxe = optarg;
|
||||
options->pickaxe_opts |= DIFF_PICKAXE_KIND_G;
|
||||
return argcount;
|
||||
}
|
||||
else if (!strcmp(arg, "--pickaxe-all"))
|
||||
options->pickaxe_opts = DIFF_PICKAXE_ALL;
|
||||
options->pickaxe_opts |= DIFF_PICKAXE_ALL;
|
||||
else if (!strcmp(arg, "--pickaxe-regex"))
|
||||
options->pickaxe_opts = DIFF_PICKAXE_REGEX;
|
||||
options->pickaxe_opts |= DIFF_PICKAXE_REGEX;
|
||||
else if ((argcount = short_opt('O', av, &optarg))) {
|
||||
options->orderfile = optarg;
|
||||
return argcount;
|
||||
@@ -4176,7 +4181,7 @@ void diffcore_std(struct diff_options *options)
|
||||
diffcore_merge_broken();
|
||||
}
|
||||
if (options->pickaxe)
|
||||
diffcore_pickaxe(options->pickaxe, options->pickaxe_opts);
|
||||
diffcore_pickaxe(options);
|
||||
if (options->orderfile)
|
||||
diffcore_order(options->orderfile);
|
||||
if (!options->found_follow)
|
||||
|
||||
Reference in New Issue
Block a user