]> git.ipfire.org Git - thirdparty/git.git/commit - fsmonitor.c
strvec: convert more callers away from argv_array name
authorJeff King <peff@peff.net>
Tue, 28 Jul 2020 20:24:53 +0000 (16:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2020 22:02:18 +0000 (15:02 -0700)
commitef8d7ac42a6a62d678166fe25ea743315809d2bb
tree41974632658fdc804d42d3c98859bd8f259828c8
parent22f9b7f3f59549735a480042a4b9ce292eedfae0
strvec: convert more 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 remaining files from the first half of the alphabet,
to keep the diff to a manageable size.

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;
  '

and then selectively staging files with "git add '[abcdefghjkl]*'".
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>
27 files changed:
add-interactive.c
add-patch.c
bisect.c
bundle.c
bundle.h
column.c
commit.c
compat/mingw.c
compat/terminal.c
connect.c
connected.c
daemon.c
diff.c
environment.c
exec-cmd.c
fast-import.c
fetch-pack.c
fsmonitor.c
git.c
gpg-interface.c
graph.c
http-backend.c
http-push.c
http.c
imap-send.c
line-log.c
ls-refs.c