]> git.ipfire.org Git - thirdparty/git.git/commit - tmp-objdir.c
strvec: rename struct fields
authorJeff King <peff@peff.net>
Wed, 29 Jul 2020 00:37:20 +0000 (20:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jul 2020 02:18:06 +0000 (19:18 -0700)
commitd70a9eb611a9d242c1d26847d223b8677609305b
tree2c7f218e0037607dfbf8c92ef34a5d412ceac78c
parentb5eb741a00155f888a9a4ced87c840a2b7b04f5a
strvec: rename struct fields

The "argc" and "argv" names made sense when the struct was argv_array,
but now they're just confusing. Let's rename them to "nr" (which we use
for counts elsewhere) and "v" (which is rather terse, but reads well
when combined with typical variable names like "args.v").

Note that we have to update all of the callers immediately. Playing
tricks with the preprocessor is hard here, because we wouldn't want to
rewrite unrelated tokens.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
52 files changed:
add-interactive.c
add-patch.c
bisect.c
builtin/add.c
builtin/am.c
builtin/annotate.c
builtin/bisect--helper.c
builtin/clone.c
builtin/commit.c
builtin/describe.c
builtin/difftool.c
builtin/fetch.c
builtin/gc.c
builtin/pack-objects.c
builtin/pull.c
builtin/rebase.c
builtin/receive-pack.c
builtin/remote.c
builtin/replace.c
builtin/show-branch.c
builtin/stash.c
builtin/submodule--helper.c
builtin/upload-archive.c
builtin/worktree.c
bundle.c
commit.c
connect.c
daemon.c
diff.c
environment.c
exec-cmd.c
git.c
graph.c
http-push.c
ls-refs.c
merge.c
pathspec.c
range-diff.c
ref-filter.c
remote-curl.c
remote.c
revision.c
run-command.c
sequencer.c
serve.c
strvec.c
strvec.h
submodule.c
t/helper/test-run-command.c
tmp-objdir.c
transport-helper.c
upload-pack.c