From: Eric Wong Date: Mon, 14 Nov 2022 09:41:14 GMT Subject: [PATCH] format-patch: add --mboxrd alias for --pretty=mboxrd Message-ID: <20221114094114.18986-1-e@80x24.org> mboxrd is a superior output format when used with --stdout and needs more exposure. Including pretty-formats.txt would be excessive, since documenting --pretty= for `git format-patch' would likely be confusing to users. Instead of documenting --pretty, add an --mboxrd alias to save keystrokes and improve documentation. Signed-off-by: Eric Wong --- Also, --mboxrd without --stdout makes no sense to me, so I'm considering warning on it... Side note: some of the OPT_* switches might be misplaced under the "Messaging" OPT_GROUP... Documentation/git-format-patch.txt | 6 +++++- builtin/log.c | 7 +++++++ contrib/completion/git-completion.bash | 2 +- t/t4014-format-patch.sh | 6 ++++-- t/t4150-am.sh | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt index dfcc7da4c211..b080d3c61e31 100644 --- a/Documentation/git-format-patch.txt +++ b/Documentation/git-format-patch.txt @@ -9,7 +9,7 @@ git-format-patch - Prepare patches for e-mail submission SYNOPSIS -------- [verse] -'git format-patch' [-k] [(-o|--output-directory) | --stdout] +'git format-patch' [-k] [(-o|--output-directory) | --stdout] [--mboxrd] [--no-thread | --thread[=