File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ SYNOPSIS
1818 [--start-number <n>] [--numbered-files]
1919 [--in-reply-to=Message-Id] [--suffix=.<sfx>]
2020 [--ignore-if-in-upstream]
21- [--subject-prefix=Subject-Prefix]
21+ [--subject-prefix=Subject-Prefix] [--reroll-count <n>]
2222 [--to=<email>] [--cc=<email>]
2323 [--cover-letter] [--quiet]
2424 [<common diff options>]
@@ -166,6 +166,14 @@ will want to ensure that threading is disabled for `git send-email`.
166166 allows for useful naming of a patch series, and can be
167167 combined with the `--numbered` option.
168168
169+ --reroll-count=<n>::
170+ Mark the series as the <n>-th iteration of the topic. The
171+ output filenames have `v<n>` pretended to them, and the
172+ subject prefix ("PATCH" by default, but configurable via the
173+ `--subject-prefix` option) has ` v<n>` appended to it. E.g.
174+ `--reroll-count=4` may produce `v4-0001-add-makefile.patch`
175+ file that has "Subject: [PATCH v4 1/20] Add makefile" in it.
176+
169177--to=<email>::
170178 Add a `To:` header to the email headers. This is in addition
171179 to any configured headers, and may be used multiple times.
Original file line number Diff line number Diff line change @@ -237,6 +237,14 @@ test_expect_success 'multiple files' '
237237 ls patches/0001-Side-changes-1.patch patches/0002-Side-changes-2.patch patches/0003-Side-changes-3-with-n-backslash-n-in-it.patch
238238'
239239
240+ test_expect_success ' reroll count' '
241+ rm -fr patches &&
242+ git format-patch -o patches --cover-letter --reroll-count 4 master..side >list &&
243+ ! grep -v "^patches/v4-000[0-3]-" list &&
244+ sed -n -e "/^Subject: /p" $(cat list) >subjects &&
245+ ! grep -v "^Subject: \[PATCH v4 [0-3]/3\] " subjects
246+ '
247+
240248check_threading () {
241249 expect=" $1 " &&
242250 shift &&
You can’t perform that action at this time.
0 commit comments