Files
git/builtin
Jeff King 8d5213decf format-patch: add format.noprefix option
The previous commit dropped support for diff.noprefix in format-patch.
While this will do the right thing in most cases (where sending patches
without a prefix was an accidental side effect of the sender preferring
to see their local patches without prefixes), it left no good option for
a project or workflow where you really do want to send patches without
prefixes. You'd be stuck using "--no-prefix" for every invocation.

So let's add a config option specific to format-patch that enables this
behavior. That gives people who have such a workflow a way to get what
they want, but makes it hard to accidentally trigger it.

A more backwards-compatible way of doing the transition would be to have
format.noprefix default to diff.noprefix when it's not set. But that
doesn't really help the "accidental" problem; people would have to
manually set format.noprefix=false. And it's unlikely that anybody
really wants format.noprefix=true in the first place. I'm adding it here
mostly as an escape hatch, not because anybody has expressed any
interest in it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-03-09 08:37:27 -08:00
..
2023-02-22 14:55:45 -08:00
2022-04-06 09:42:14 -07:00
2023-01-13 14:17:14 -08:00
2023-01-05 15:07:22 +09:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2021-10-28 09:57:09 -07:00
2022-12-14 15:55:46 +09:00
2022-11-23 11:22:24 +09:00
2023-03-09 08:37:27 -08:00
2023-02-22 14:55:45 -08:00
2022-11-16 14:57:32 -05:00
2023-02-15 17:11:53 -08:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2022-12-18 11:48:26 +09:00