From: Illia Bobyr Date: Wed, 12 Feb 2025 03:26:48 GMT Subject: [PATCH v5 04/10] diff: short help: Add -G and --pickaxe-grep Message-ID: <20250212032657.1807939-5-illia.bobyr@gmail.com> In-Reply-To: <20250212032657.1807939-1-illia.bobyr@gmail.com> -G and --pickaxe-grep seems to be on par with -S and --pickaxe-all that are already mentioned. --- diff.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/diff.h b/diff.h index 49ece3..787bb 100644 --- a/diff.h +++ b/diff.h @@ -606,9 +606,12 @@ void diffcore_fix_diff_index(void); " try unchanged files as candidate for copy detection.\n" \ " -l limit rename attempts up to paths.\n" \ " -O reorder diffs according to the .\n" \ +" -G find differences where patch contains the specified regex.\n" \ " -S find filepair who differ in the number of occurrences of string.\n" \ +" --pickaxe-grep\n" \ +" treat as a regex in the -S argument.\n" \ " --pickaxe-all\n" \ -" show all files diff when -S is used and hit is found.\n" \ +" show all files diff when -G or -S is used and hit is found.\n" \ " -a --text treat all files as text.\n" int diff_queue_is_empty(struct diff_options *o); -- 2.45.2