about summary refs log tree commit homepage
path: root/Documentation
diff options
authorEric Wong <e@80x24.org>2021-09-27 04:59:31 +0000
committerEric Wong <e@80x24.org>2021-09-27 09:22:48 +0000
commit751df49e7db8ba770dff28fb701b31c57ca200e2 (patch)
treef0a23f5e061481a72adf9bdf5f2983e28092d537 /Documentation
parentc5b8b0cbc72b8133c70d68668047219342e886d1 (diff)
More switches which can be useful for users who pipe from text
editors.  --drq can be helpful while writing patch review email
replies, and perhaps --dequote-only, too.
Diffstat (limited to 'Documentation')
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/lei-rediff.pod b/Documentation/lei-rediff.pod
index f34e946f..e711de97 100644
--- a/Documentation/lei-rediff.pod
+++ b/Documentation/lei-rediff.pod
@@ -38,6 +38,33 @@ to C<lei rediff> before piping it to L<git-am(1)>.  The output
 of C<lei rediff> is compatible with C<git am> if its input was a
 patch email.
+=item --drq[=COUNT]
+De-Re-Quote.  De-quote the input and re-quotes (the output).
+Removes COUNT levels of C<E<gt> > email reply prefixes and
+re-adds them upon regenerating the diff.
+This switch is intended as a convenience for running inside a
+pipe-capable text editor when writing replies to a patch email.
+Note: this may over-add C<E<gt> > prefixes if some input lines
+are missing C<E<gt> > prefixes.
+COUNT is 1 if unspecified; in other words, C<--drq=1> and
+C<--drq> are equivalent.
+It implies L</--quiet> unless L</--verbose> is specified
+since text editors tend to combine stderr with stdout.
+=item --dequote-only[=COUNT]
+Like L</--drq>, but does not re-add quote prefixes to the output.
+This can be useful for feeding a hunk to L<git-apply(1)>
+or L<patch(1)> while writing a reply or further processing
+by another diff viewer.
+Unlike L</--drq>, it does NOT implies L</--quiet>.
 =item --git-dir=DIR
 Specify an additional .git/ directory to scan.  This option may be