]> git.99rst.org Git - git.git/commit
rebase: use strvec_pushf() for format-patch revisions
authorRené Scharfe <redacted>
Tue, 19 Dec 2023 07:42:18 +0000 (08:42 +0100)
committerJunio C Hamano <redacted>
Wed, 20 Dec 2023 17:26:58 +0000 (09:26 -0800)
commit45184afb4d4a76a01483e086d9f0cf0af10a7286
tree2612b3b1d5e5994f40188886f6bb48502cc3841d
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38
rebase: use strvec_pushf() for format-patch revisions

In run_am(), a strbuf is used to create a revision argument that is then
added to the argument list for git format-patch using strvec_push().
Use strvec_pushf() to add it directly instead, simplifying the code
and plugging a small leak on the error code path.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rebase.c
git clone https://git.99rst.org/PROJECT