diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:19 -0700 |
| commit | 51a74900aa48242db54336c0af43507acbe108ed (patch) | |
| tree | 2e835bb2ee5460d802b9590ea8bd5cfddfbc3700 /git.c | |
| parent | 11f494d5b22a6c2fcd95bf941c03e2ec12b26bfb (diff) | |
| parent | 250e977a2b0aa8cc1c8063c64c44597a166e79f5 (diff) | |
| download | git-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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:"); |
