]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.c
strvec: fix indentation in renamed calls
authorJeff King <peff@peff.net>
Tue, 28 Jul 2020 20:26:31 +0000 (16:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2020 22:02:18 +0000 (15:02 -0700)
commitf6d8942b1fc6c968980c8ae03054d7b2114b4415
treeded3f10f7d390a4dba264c70197b00bc327fae40
parentc972bf4cf546a56fe1c54ddde1d33ebb9f454a0f
strvec: fix indentation in renamed calls

Code which split an argv_array call across multiple lines, like:

  argv_array_pushl(&args, "one argument",
                   "another argument", "and more",
   NULL);

was recently mechanically renamed to use strvec, which results in
mis-matched indentation like:

  strvec_pushl(&args, "one argument",
                   "another argument", "and more",
   NULL);

Let's fix these up to align the arguments with the opening paren. I did
this manually by sifting through the results of:

  git jump grep 'strvec_.*,$'

and liberally applying my editor's auto-format. Most of the changes are
of the form shown above, though I also normalized a few that had
originally used a single-tab indentation (rather than our usual style of
aligning with the open paren). I also rewrapped a couple of obvious
cases (e.g., where previously too-long lines became short enough to fit
on one), but I wasn't aggressive about it. In cases broken to three or
more lines, the grouping of arguments is sometimes meaningful, and it
wasn't worth my time or reviewer time to ponder each case individually.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
34 files changed:
add-interactive.c
add-patch.c
bisect.c
builtin/bisect--helper.c
builtin/describe.c
builtin/difftool.c
builtin/fetch.c
builtin/gc.c
builtin/pull.c
builtin/rebase.c
builtin/receive-pack.c
builtin/repack.c
builtin/stash.c
builtin/submodule--helper.c
builtin/worktree.c
bundle.c
connect.c
connected.c
daemon.c
fetch-pack.c
gpg-interface.c
http-backend.c
http-push.c
http.c
range-diff.c
refspec.c
remote-curl.c
remote.c
sequencer.c
submodule.c
t/helper/test-run-command.c
transport-helper.c
upload-pack.c
wt-status.c