summaryrefslogtreecommitdiff
path: root/t/lib-pack.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-05-19 10:27:46 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-21 09:58:56 +0900
commit735e4173b3feba0cc495bbb2dd85341b6378f628 (patch)
tree254110f834da6b030ca1e0b0a7490f76c040276d /t/lib-pack.sh
parentlog_write_email_headers: use strbufs (diff)
downloadtgif-735e4173b3feba0cc495bbb2dd85341b6378f628.tar.xz
fsmonitor: use internal argv_array of struct child_process
Avoid magic array sizes and indexes by constructing the fsmonitor command line using the embedded argv_array of the child_process. The resulting code is shorter and easier to extend. Getting rid of the snprintf() calls is a bonus -- even though the buffers were big enough here to avoid truncation -- as it makes auditing the remaining callers easier. Inspired-by: Jeff King <peff@peff.net> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-pack.sh')
0 files changed, 0 insertions, 0 deletions