Browse Source

strvec: rename files from argv-array to strvec

This requires updating #include lines across the code-base, but that's
all fairly mechanical, and was done with:

  git ls-files '*.c' '*.h' |
  xargs perl -i -pe 's/argv-array.h/strvec.h/'

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Jeff King 4 years ago committed by Junio C Hamano
parent
commit
dbbcd44fb4
  1. 2
      Makefile
  2. 2
      add-patch.c
  3. 2
      bisect.c
  4. 2
      builtin/add.c
  5. 2
      builtin/annotate.c
  6. 2
      builtin/bisect--helper.c
  7. 2
      builtin/bundle.c
  8. 2
      builtin/describe.c
  9. 2
      builtin/difftool.c
  10. 2
      builtin/fetch.c
  11. 2
      builtin/gc.c
  12. 2
      builtin/pack-objects.c
  13. 2
      builtin/rebase.c
  14. 2
      builtin/receive-pack.c
  15. 2
      builtin/remote.c
  16. 2
      builtin/repack.c
  17. 2
      builtin/show-branch.c
  18. 2
      builtin/stash.c
  19. 2
      builtin/update-ref.c
  20. 2
      builtin/upload-archive.c
  21. 2
      builtin/worktree.c
  22. 2
      bundle.c
  23. 2
      bundle.h
  24. 2
      diff.c
  25. 2
      environment.c
  26. 2
      exec-cmd.c
  27. 2
      graph.c
  28. 2
      http-backend.c
  29. 2
      http-push.c
  30. 2
      line-log.c
  31. 2
      list-objects-filter-options.c
  32. 2
      ls-refs.c
  33. 2
      parse-options-cb.c
  34. 2
      pathspec.c
  35. 2
      quote.c
  36. 2
      range-diff.c
  37. 2
      range-diff.h
  38. 2
      ref-filter.c
  39. 2
      refs.c
  40. 2
      refspec.c
  41. 2
      remote-curl.c
  42. 2
      remote-testsvn.c
  43. 2
      remote.c
  44. 2
      revision.c
  45. 2
      run-command.c
  46. 2
      run-command.h
  47. 2
      sequencer.c
  48. 2
      serve.c
  49. 2
      strvec.c
  50. 6
      strvec.h
  51. 2
      submodule.c
  52. 2
      t/helper/test-run-command.c
  53. 2
      t/helper/test-trace2.c
  54. 2
      tmp-objdir.c
  55. 2
      transport-helper.c
  56. 2
      unpack-trees.c
  57. 2
      unpack-trees.h
  58. 2
      upload-pack.c
  59. 2
      wt-status.c

2
Makefile

@ -828,7 +828,6 @@ LIB_OBJS += apply.o @@ -828,7 +828,6 @@ LIB_OBJS += apply.o
LIB_OBJS += archive-tar.o
LIB_OBJS += archive-zip.o
LIB_OBJS += archive.o
LIB_OBJS += argv-array.o
LIB_OBJS += attr.o
LIB_OBJS += base85.o
LIB_OBJS += bisect.o
@ -986,6 +985,7 @@ LIB_OBJS += sigchain.o @@ -986,6 +985,7 @@ LIB_OBJS += sigchain.o
LIB_OBJS += split-index.o
LIB_OBJS += stable-qsort.o
LIB_OBJS += strbuf.o
LIB_OBJS += strvec.o
LIB_OBJS += streaming.o
LIB_OBJS += string-list.o
LIB_OBJS += sub-process.o

2
add-patch.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "add-interactive.h"
#include "strbuf.h"
#include "run-command.h"
#include "argv-array.h"
#include "strvec.h"
#include "pathspec.h"
#include "color.h"
#include "diff.h"

2
bisect.c

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#include "log-tree.h"
#include "bisect.h"
#include "oid-array.h"
#include "argv-array.h"
#include "strvec.h"
#include "commit-slab.h"
#include "commit-reach.h"
#include "object-store.h"

2
builtin/add.c

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "diffcore.h"
#include "revision.h"
#include "bulk-checkin.h"
#include "argv-array.h"
#include "strvec.h"
#include "submodule.h"
#include "add-interactive.h"


2
builtin/annotate.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
*/
#include "git-compat-util.h"
#include "builtin.h"
#include "argv-array.h"
#include "strvec.h"

int cmd_annotate(int argc, const char **argv, const char *prefix)
{

2
builtin/bisect--helper.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "bisect.h"
#include "refs.h"
#include "dir.h"
#include "argv-array.h"
#include "strvec.h"
#include "run-command.h"
#include "prompt.h"
#include "quote.h"

2
builtin/bundle.c

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include "builtin.h"
#include "argv-array.h"
#include "strvec.h"
#include "parse-options.h"
#include "cache.h"
#include "bundle.h"

2
builtin/describe.c

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#include "revision.h"
#include "diff.h"
#include "hashmap.h"
#include "argv-array.h"
#include "strvec.h"
#include "run-command.h"
#include "object-store.h"
#include "list-objects.h"

2
builtin/difftool.c

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "run-command.h"
#include "exec-cmd.h"
#include "parse-options.h"
#include "argv-array.h"
#include "strvec.h"
#include "strbuf.h"
#include "lockfile.h"
#include "object-store.h"

2
builtin/fetch.c

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
#include "submodule-config.h"
#include "submodule.h"
#include "connected.h"
#include "argv-array.h"
#include "strvec.h"
#include "utf8.h"
#include "packfile.h"
#include "list-objects-filter-options.h"

2
builtin/gc.c

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "parse-options.h"
#include "run-command.h"
#include "sigchain.h"
#include "argv-array.h"
#include "strvec.h"
#include "commit.h"
#include "commit-graph.h"
#include "packfile.h"

2
builtin/pack-objects.c

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
#include "delta-islands.h"
#include "reachable.h"
#include "oid-array.h"
#include "argv-array.h"
#include "strvec.h"
#include "list.h"
#include "packfile.h"
#include "object-store.h"

2
builtin/rebase.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "builtin.h"
#include "run-command.h"
#include "exec-cmd.h"
#include "argv-array.h"
#include "strvec.h"
#include "dir.h"
#include "packfile.h"
#include "refs.h"

2
builtin/receive-pack.c

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
#include "string-list.h"
#include "oid-array.h"
#include "connected.h"
#include "argv-array.h"
#include "strvec.h"
#include "version.h"
#include "tag.h"
#include "gpg-interface.h"

2
builtin/remote.c

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include "refs.h"
#include "refspec.h"
#include "object-store.h"
#include "argv-array.h"
#include "strvec.h"
#include "commit-reach.h"

static const char * const builtin_remote_usage[] = {

2
builtin/repack.c

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include "sigchain.h"
#include "strbuf.h"
#include "string-list.h"
#include "argv-array.h"
#include "strvec.h"
#include "midx.h"
#include "packfile.h"
#include "prune-packed.h"

2
builtin/show-branch.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "refs.h"
#include "builtin.h"
#include "color.h"
#include "argv-array.h"
#include "strvec.h"
#include "parse-options.h"
#include "dir.h"
#include "commit-slab.h"

2
builtin/stash.c

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include "cache-tree.h"
#include "unpack-trees.h"
#include "merge-recursive.h"
#include "argv-array.h"
#include "strvec.h"
#include "run-command.h"
#include "dir.h"
#include "rerere.h"

2
builtin/update-ref.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "builtin.h"
#include "parse-options.h"
#include "quote.h"
#include "argv-array.h"
#include "strvec.h"

static const char * const git_update_ref_usage[] = {
N_("git update-ref [<options>] -d <refname> [<old-val>]"),

2
builtin/upload-archive.c

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include "pkt-line.h"
#include "sideband.h"
#include "run-command.h"
#include "argv-array.h"
#include "strvec.h"

static const char upload_archive_usage[] =
"git upload-archive <repo>";

2
builtin/worktree.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "builtin.h"
#include "dir.h"
#include "parse-options.h"
#include "argv-array.h"
#include "strvec.h"
#include "branch.h"
#include "refs.h"
#include "run-command.h"

2
bundle.c

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include "list-objects.h"
#include "run-command.h"
#include "refs.h"
#include "argv-array.h"
#include "strvec.h"

static const char bundle_signature[] = "# v2 git bundle\n";


2
bundle.h

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#ifndef BUNDLE_H
#define BUNDLE_H

#include "argv-array.h"
#include "strvec.h"
#include "cache.h"

struct ref_list {

2
diff.c

@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
#include "hashmap.h"
#include "ll-merge.h"
#include "string-list.h"
#include "argv-array.h"
#include "strvec.h"
#include "graph.h"
#include "packfile.h"
#include "parse-options.h"

2
environment.c

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
#include "refs.h"
#include "fmt-merge-msg.h"
#include "commit.h"
#include "argv-array.h"
#include "strvec.h"
#include "object-store.h"
#include "chdir-notify.h"
#include "shallow.h"

2
exec-cmd.c

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#include "cache.h"
#include "exec-cmd.h"
#include "quote.h"
#include "argv-array.h"
#include "strvec.h"

#if defined(RUNTIME_PREFIX)


2
graph.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "color.h"
#include "graph.h"
#include "revision.h"
#include "argv-array.h"
#include "strvec.h"

/* Internal API */


2
http-backend.c

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include "run-command.h"
#include "string-list.h"
#include "url.h"
#include "argv-array.h"
#include "strvec.h"
#include "packfile.h"
#include "object-store.h"
#include "protocol.h"

2
http-push.c

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#include "remote.h"
#include "list-objects.h"
#include "sigchain.h"
#include "argv-array.h"
#include "strvec.h"
#include "packfile.h"
#include "object-store.h"
#include "commit-reach.h"

2
line-log.c

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
#include "graph.h"
#include "userdiff.h"
#include "line-log.h"
#include "argv-array.h"
#include "strvec.h"
#include "bloom.h"

static void range_set_grow(struct range_set *rs, size_t extra)

2
list-objects-filter-options.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "commit.h"
#include "config.h"
#include "revision.h"
#include "argv-array.h"
#include "strvec.h"
#include "list-objects.h"
#include "list-objects-filter.h"
#include "list-objects-filter-options.h"

2
ls-refs.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "repository.h"
#include "refs.h"
#include "remote.h"
#include "argv-array.h"
#include "strvec.h"
#include "ls-refs.h"
#include "pkt-line.h"
#include "config.h"

2
parse-options-cb.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "commit.h"
#include "color.h"
#include "string-list.h"
#include "argv-array.h"
#include "strvec.h"
#include "oid-array.h"

/*----- some often used options -----*/

2
pathspec.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "dir.h"
#include "pathspec.h"
#include "attr.h"
#include "argv-array.h"
#include "strvec.h"
#include "quote.h"

/*

2
quote.c

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#include "cache.h"
#include "quote.h"
#include "argv-array.h"
#include "strvec.h"

int quote_path_fully = 1;


2
range-diff.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "range-diff.h"
#include "string-list.h"
#include "run-command.h"
#include "argv-array.h"
#include "strvec.h"
#include "hashmap.h"
#include "xdiff-interface.h"
#include "linear-assignment.h"

2
range-diff.h

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#define RANGE_DIFF_H

#include "diff.h"
#include "argv-array.h"
#include "strvec.h"

#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60


2
ref-filter.c

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
#include "commit-reach.h"
#include "worktree.h"
#include "hashmap.h"
#include "argv-array.h"
#include "strvec.h"

static struct ref_msg {
const char *gone;

2
refs.c

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
#include "tag.h"
#include "submodule.h"
#include "worktree.h"
#include "argv-array.h"
#include "strvec.h"
#include "repository.h"
#include "sigchain.h"


2
refspec.c

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include "cache.h"
#include "argv-array.h"
#include "strvec.h"
#include "refs.h"
#include "refspec.h"


2
remote-curl.c

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include "pkt-line.h"
#include "string-list.h"
#include "sideband.h"
#include "argv-array.h"
#include "strvec.h"
#include "credential.h"
#include "oid-array.h"
#include "send-pack.h"

2
remote-testsvn.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "run-command.h"
#include "vcs-svn/svndump.h"
#include "notes.h"
#include "argv-array.h"
#include "strvec.h"

static const char *url;
static int dump_from_file;

2
remote.c

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#include "tag.h"
#include "string-list.h"
#include "mergesort.h"
#include "argv-array.h"
#include "strvec.h"
#include "commit-reach.h"
#include "advice.h"


2
revision.c

@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
#include "bisect.h"
#include "packfile.h"
#include "worktree.h"
#include "argv-array.h"
#include "strvec.h"
#include "commit-reach.h"
#include "commit-graph.h"
#include "prio-queue.h"

2
run-command.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "run-command.h"
#include "exec-cmd.h"
#include "sigchain.h"
#include "argv-array.h"
#include "strvec.h"
#include "thread-utils.h"
#include "strbuf.h"
#include "string-list.h"

2
run-command.h

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@

#include "thread-utils.h"

#include "argv-array.h"
#include "strvec.h"

/**
* The run-command API offers a versatile tool to run sub-processes with

2
sequencer.c

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
#include "rerere.h"
#include "merge-recursive.h"
#include "refs.h"
#include "argv-array.h"
#include "strvec.h"
#include "quote.h"
#include "trailer.h"
#include "log-tree.h"

2
serve.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "config.h"
#include "pkt-line.h"
#include "version.h"
#include "argv-array.h"
#include "strvec.h"
#include "ls-refs.h"
#include "serve.h"
#include "upload-pack.h"

2
argv-array.c → strvec.c

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include "cache.h"
#include "argv-array.h"
#include "strvec.h"
#include "strbuf.h"

const char *empty_strvec[] = { NULL };

6
argv-array.h → strvec.h

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#ifndef ARGV_ARRAY_H
#define ARGV_ARRAY_H
#ifndef STRVEC_H
#define STRVEC_H

/**
* The argv-array API allows one to dynamically build and store
@ -99,4 +99,4 @@ const char **strvec_detach(struct strvec *); @@ -99,4 +99,4 @@ const char **strvec_detach(struct strvec *);
#define argv_array_clear strvec_clear
#define argv_array_detach strvec_detach

#endif /* ARGV_ARRAY_H */
#endif /* STRVEC_H */

2
submodule.c

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
#include "refs.h"
#include "string-list.h"
#include "oid-array.h"
#include "argv-array.h"
#include "strvec.h"
#include "blob.h"
#include "thread-utils.h"
#include "quote.h"

2
t/helper/test-run-command.c

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#include "git-compat-util.h"
#include "cache.h"
#include "run-command.h"
#include "argv-array.h"
#include "strvec.h"
#include "strbuf.h"
#include "parse-options.h"
#include "string-list.h"

2
t/helper/test-trace2.c

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#include "test-tool.h"
#include "cache.h"
#include "argv-array.h"
#include "strvec.h"
#include "run-command.h"
#include "exec-cmd.h"
#include "config.h"

2
tmp-objdir.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "sigchain.h"
#include "string-list.h"
#include "strbuf.h"
#include "argv-array.h"
#include "strvec.h"
#include "quote.h"
#include "object-store.h"


2
transport-helper.c

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include "string-list.h"
#include "thread-utils.h"
#include "sigchain.h"
#include "argv-array.h"
#include "strvec.h"
#include "refs.h"
#include "refspec.h"
#include "transport-internal.h"

2
unpack-trees.c

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include "cache.h"
#include "argv-array.h"
#include "strvec.h"
#include "repository.h"
#include "config.h"
#include "dir.h"

2
unpack-trees.h

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#define UNPACK_TREES_H

#include "cache.h"
#include "argv-array.h"
#include "strvec.h"
#include "string-list.h"
#include "tree-walk.h"


2
upload-pack.c

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "sigchain.h"
#include "version.h"
#include "string-list.h"
#include "argv-array.h"
#include "strvec.h"
#include "prio-queue.h"
#include "protocol.h"
#include "quote.h"

2
wt-status.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "diffcore.h"
#include "quote.h"
#include "run-command.h"
#include "argv-array.h"
#include "strvec.h"
#include "remote.h"
#include "refs.h"
#include "submodule.h"

Loading…
Cancel
Save