]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
strvec: convert remaining callers away from argv_array name
authorJeff King <peff@peff.net>
Tue, 28 Jul 2020 20:25:12 +0000 (16:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2020 22:02:18 +0000 (15:02 -0700)
commitc972bf4cf546a56fe1c54ddde1d33ebb9f454a0f
tree3a97c304c0e0ed4656cc5049ba44b4eb26e87a16
parentef8d7ac42a6a62d678166fe25ea743315809d2bb
strvec: convert remaining callers away from argv_array name

We eventually want to drop the argv_array name and just use strvec
consistently. There's no particular reason we have to do it all at once,
or care about interactions between converted and unconverted bits.
Because of our preprocessor compat layer, the names are interchangeable
to the compiler (so even a definition and declaration using different
names is OK).

This patch converts all of the remaining files, as the resulting diff is
reasonably sized.

The conversion was done purely mechanically with:

  git ls-files '*.c' '*.h' |
  xargs perl -i -pe '
    s/ARGV_ARRAY/STRVEC/g;
    s/argv_array/strvec/g;
  '

We'll deal with any indentation/style fallouts separately.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
33 files changed:
merge.c
midx.c
pager.c
parse-options-cb.c
pathspec.c
quote.c
range-diff.c
range-diff.h
ref-filter.c
refs.c
refspec.c
remote-curl.c
remote-testsvn.c
remote.c
revision.c
run-command.c
run-command.h
send-pack.c
sequencer.c
serve.c
sha1-file.c
sub-process.c
submodule.c
t/helper/test-run-command.c
tmp-objdir.c
transport-helper.c
transport-internal.h
transport.c
transport.h
unpack-trees.c
unpack-trees.h
upload-pack.c
wt-status.c