summaryrefslogtreecommitdiffstats
path: root/bisect.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2022-10-30 12:46:11 +0100
committerTaylor Blau <me@ttaylorr.com>2022-10-30 19:04:33 +0100
commit75c92a0540dd866b1ccf5454c4cc540d926a6139 (patch)
treea1397b259d9c284598b7fbd15df2da4b6c5ff641 /bisect.c
parentrun-command: fix return value comment (diff)
downloadgit-75c92a0540dd866b1ccf5454c4cc540d926a6139.tar.xz
git-75c92a0540dd866b1ccf5454c4cc540d926a6139.zip
am: simplify building "show" argument list
Build the string array av during initialization, without any magic numbers or heap allocations. Not duplicating the result of oid_to_hex() is safe because run_command_v_opt() duplicates all arguments already. (It would even be safe if it didn't, but that's a different story.) Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions