aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-01 10:28:18 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-01 10:28:19 -0700
commit51a74900aa48242db54336c0af43507acbe108ed (patch)
tree2e835bb2ee5460d802b9590ea8bd5cfddfbc3700 /git.c
parent11f494d5b22a6c2fcd95bf941c03e2ec12b26bfb (diff)
parent250e977a2b0aa8cc1c8063c64c44597a166e79f5 (diff)
downloadgit-51a74900aa48242db54336c0af43507acbe108ed.tar.xz
Merge branch 'rs/use-strvec-pushv'
Code paths that loop over another array to push each element into a strvec have been rewritten to use strvec_pushv() instead. * rs/use-strvec-pushv: use strvec_pushv() to add another strvec
Diffstat (limited to 'git.c')
-rw-r--r--git.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/git.c b/git.c
index 2b212e6675..5a40eab8a2 100644
--- a/git.c
+++ b/git.c
@@ -877,8 +877,7 @@ static int run_argv(struct strvec *args)
commit_pager_choice();
strvec_push(&cmd.args, "git");
- for (size_t i = 0; i < args->nr; i++)
- strvec_push(&cmd.args, args->v[i]);
+ strvec_pushv(&cmd.args, args->v);
trace_argv_printf(cmd.args.v, "trace: exec:");