On Friday 2026-02-06 16:29, Florian Weimer wrote:

>This new option can be used to prevent the application of patches in
>commit messages that are part of git show output, for example. Such
>text will be indented by for spaces.  Without the --no-dedent option,
>the patch tool incorrectly recognizes those diffs.

Dedent? Not outdent (unindent, deindent, exdent)?

It appears there is not one commonly widely accepted word for such an
action linguistically, especially not in word processors where indent
manipulation has been a staple since decades.

Maybe.. I'll be so bold as to propose making the effect of
--no-dedent the default and instead have explicit
--remove-indent/--remove-encapsulation (based on the description
appearing in the patch.1 manpage). I can't remember the time I had to
deal with an indented patch, and moreover, patch does not even
handle the arguably most common indent, ">":

>diff --git a/patch.man b/patch.man
>index 576b4d645378f2c9..17dda588654f9cd3 100644
>--- a/patch.man
>+++ b/patch.man
>@@ -71,6 +71,9 @@ After removing indenting or encapsulation,

Reply via email to