From: Mirko Faina Date: Mon, 23 Mar 2026 16:57:27 GMT Subject: [PATCH v3 0/8] improve "git format-patch --commit-list-format" Message-ID: In-Reply-To: Not much has changed, just applied the suggestions Kristoffer made. Thank you again for the review [1/8] pretty.c: better die message %(count) and %(total) (Mirko Faina) [2/8] format-patch: refactor generate_commit_list_cover (Mirko Faina) [3/8] format-patch: rename --cover-letter-format option (Mirko Faina) [4/8] docs/pretty-formats: add %(count) and %(total) (Mirko Faina) [5/8] format.commitListFormat: strip meaning from empty (Mirko Faina) [6/8] format-patch: wrap generate_commit_list_cover() (Mirko Faina) [7/8] format-patch: add preset for --commit-list-format (Mirko Faina) [8/8] format-patch: --commit-list-format without prefix (Mirko Faina) Documentation/config/format.adoc | 2 +- Documentation/git-format-patch.adoc | 19 ++++---- Documentation/pretty-formats.adoc | 4 ++ builtin/log.c | 35 +++++++------- pretty.c | 4 +- t/t4014-format-patch.sh | 72 +++++++++++++++++++---------- t/t9902-completion.sh | 1 - 7 files changed, 84 insertions(+), 53 deletions(-) Range-diff against v2: 1: a0d26c5999 = 1: a0d26c5999 pretty.c: better die message %(count) and %(total) 2: 883dd358b6 = 2: 883dd358b6 format-patch: refactor generate_commit_list_cover 3: 5d061d6398 = 3: 5d061d6398 format-patch: rename --cover-letter-format option 4: 7b1e5cbb24 ! 4: ce7d1bd1fe docs/pretty-formats: add %(count) and %(total) @@ Metadata ## Commit message ## docs/pretty-formats: add %(count) and %(total) - When --commit-list-format has been introduced to format-patch, two new - placeholders have been added to the PRETTY FORMATS code without being + When --commit-list-format was introduced to format-patch, two new + placeholders were added to the PRETTY FORMATS code without being documented. Do so now. Signed-off-by: Mirko Faina @@ Documentation/pretty-formats.adoc: The placeholders are: +%D+:: ref names without the " (", ")" wrapping. ++%(count)+:: the number of a patch within a patch series. Used only in + `--commit-list-format` in `format-patch` -++%(total)+:: the number of tatal patches in a patch series. Used only in +++%(total)+:: the total number of patches in a patch series. Used only in + `--commit-list-format` in `format-patch` ++%(decorate++`[: