Skip to content

Commit 80b0909

Browse files
ilya-bobyrgitster
authored andcommitted
diff: --pickaxe-{all,regex} help: Add --patch-{grep,modifies}
For less experienced users --patch-{grep,modifies} should be easier to understand than just -S or -G. By mentioning the long argument names in the help messages we save those users from having to search the list of options for an explanation of what -S or -G stand for. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 07a176c commit 80b0909

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

diff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5871,10 +5871,10 @@ struct option *add_diff_options(const struct option *opts,
58715871
N_("look for differences where a patch contains the specified regex"),
58725872
0, diff_opt_pickaxe_regex),
58735873
OPT_BIT_F(0, "pickaxe-all", &options->pickaxe_opts,
5874-
N_("show all changes in the changeset with -S or -G"),
5874+
N_("show all changes in the changeset with -S/--patch-modifies or -G/--patch-grep"),
58755875
DIFF_PICKAXE_ALL, PARSE_OPT_NONEG),
58765876
OPT_BIT_F(0, "pickaxe-regex", &options->pickaxe_opts,
5877-
N_("treat <string> in -S as extended POSIX regular expression"),
5877+
N_("treat <string> in -S/--patch-modifies as extended POSIX regular expression"),
58785878
DIFF_PICKAXE_REGEX, PARSE_OPT_NONEG),
58795879
OPT_FILENAME('O', NULL, &options->orderfile,
58805880
N_("control the order in which files appear in the output")),

diff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ void diffcore_fix_diff_index(void);
613613
" --patch-modifies=<string>\n" \
614614
" find filepair who differ in the number of occurrences of string.\n" \
615615
" --pickaxe-grep\n" \
616-
" treat <string> as a regex in the -S argument.\n" \
616+
" treat <string> as a regex in the -S/--patch-modifies argument.\n" \
617617
" --pickaxe-all\n" \
618-
" show all files diff when -G or -S is used and hit is found.\n" \
618+
" show all files diff for -G/--patch-grep and -S/--patch-modifies.\n" \
619619
" -a --text treat all files as text.\n"
620620

621621
int diff_queue_is_empty(struct diff_options *o);

0 commit comments

Comments
 (0)