diff-options.txt: avoid "regex" overload in example
authorMartin Ågren <redacted>
Thu, 6 Feb 2020 20:53:01 +0000 (21:53 +0100)
committerJunio C Hamano <redacted>
Sun, 9 Feb 2020 17:25:24 +0000 (09:25 -0800)
When we exemplify the difference between `-G` and `-S` (using
`--pickaxe-regex`), we do so using an example diff and git-diff
invocation involving "regexec", "regexp", "regmatch", ...

The example is correct, but we can make it easier to untangle by
avoiding writing "regex.*" unless it's really needed to make our point.

Use some made-up, non-regexy words instead.

Reported-by: Adam Dinwoodie <redacted>
Signed-off-by: Martin Ågren <redacted>
Reviewed-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/diff-options.txt

index 09faee3b44db2e78ba909d30c62ff105255c7832..bb31f0c42b3f8a7b26f6eb01e7e1ad7c0b0fa008 100644 (file)
@@ -567,13 +567,13 @@ To illustrate the difference between `-S<regex> --pickaxe-regex` and
 file:
 +
 ----
-+    return !regexec(regexp, two->ptr, 1, &regmatch, 0);
++    return frotz(nitfol, two->ptr, 1, 0);
 ...
--    hit = !regexec(regexp, mf2.ptr, 1, &regmatch, 0);
+-    hit = frotz(nitfol, mf2.ptr, 1, 0);
 ----
 +
-While `git log -G"regexec\(regexp"` will show this commit, `git log
--S"regexec\(regexp" --pickaxe-regex` will not (because the number of
+While `git log -G"frotz\(nitfol"` will show this commit, `git log
+-S"frotz\(nitfol" --pickaxe-regex` will not (because the number of
 occurrences of that string did not change).
 +
 Unless `--text` is supplied patches of binary files without a textconv
git clone https://git.99rst.org/PROJECT