]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/difftool.c
strvec: convert builtin/ callers away from argv_array name
authorJeff King <peff@peff.net>
Tue, 28 Jul 2020 20:24:27 +0000 (16:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2020 22:02:18 +0000 (15:02 -0700)
commit22f9b7f3f59549735a480042a4b9ce292eedfae0
treeaf564ca6084c9790ea99dd60291d7aa9f854fecb
parent2745b6b4505ae11d6821c1d451169727b558a079
strvec: convert builtin/ 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 files in builtin/ 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 builtin/". 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>
28 files changed:
builtin/add.c
builtin/am.c
builtin/annotate.c
builtin/bisect--helper.c
builtin/bundle.c
builtin/clone.c
builtin/commit.c
builtin/describe.c
builtin/difftool.c
builtin/fetch.c
builtin/gc.c
builtin/grep.c
builtin/log.c
builtin/ls-remote.c
builtin/pack-objects.c
builtin/pull.c
builtin/range-diff.c
builtin/rebase.c
builtin/receive-pack.c
builtin/remote-ext.c
builtin/remote.c
builtin/repack.c
builtin/replace.c
builtin/show-branch.c
builtin/stash.c
builtin/submodule--helper.c
builtin/upload-archive.c
builtin/worktree.c