Skip to content

Commit 3887614

Browse files
ilya-bobyrgitster
authored andcommitted
diff: short help: Add -G and --pickaxe-grep
-G and --pickaxe-grep seems to be on par with -S and --pickaxe-all that are already mentioned. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9275772 commit 3887614

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

diff.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,12 @@ void diffcore_fix_diff_index(void);
606606
" try unchanged files as candidate for copy detection.\n" \
607607
" -l<n> limit rename attempts up to <n> paths.\n" \
608608
" -O<file> reorder diffs according to the <file>.\n" \
609+
" -G<regex> find differences where patch contains the specified regex.\n" \
609610
" -S<string> find filepair who differ in the number of occurrences of string.\n" \
611+
" --pickaxe-grep\n" \
612+
" treat <string> as a regex in the -S argument.\n" \
610613
" --pickaxe-all\n" \
611-
" show all files diff when -S is used and hit is found.\n" \
614+
" show all files diff when -G or -S is used and hit is found.\n" \
612615
" -a --text treat all files as text.\n"
613616

614617
int diff_queue_is_empty(struct diff_options *o);

0 commit comments

Comments
 (0)