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
18
18
[--start-number <n>] [--numbered-files]
19
19
[--in-reply-to=Message-Id] [--suffix=.<sfx>]
20
20
[--ignore-if-in-upstream]
21
- [--subject-prefix=Subject-Prefix]
21
+ [--subject-prefix=Subject-Prefix] [--reroll-count <n>]
22
22
[--to=<email>] [--cc=<email>]
23
23
[--cover-letter] [--quiet]
24
24
[<common diff options>]
@@ -166,6 +166,14 @@ will want to ensure that threading is disabled for `git send-email`.
166
166
allows for useful naming of a patch series, and can be
167
167
combined with the `--numbered` option.
168
168
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
+
169
177
--to=<email>::
170
178
Add a `To:` header to the email headers. This is in addition
171
179
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' '
237
237
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
238
238
'
239
239
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
+
240
248
check_threading () {
241
249
expect=" $1 " &&
242
250
shift &&
You can’t perform that action at this time.
0 commit comments