[GSoC PATCH v4 0/2] repo: add -z and objects.format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

This v4 fixes two codestyle issues:

- Break line before opening a brace
- Add spaces surrounding a `|`

Here's the range-diff versus v3:

1:  0323f1fa75 ! 1:  19c84e1a48 repo: add the flag -z as an alias for --format=nul
    @@ builtin/repo.c: static int print_fields(int argc, const char **argv,
      }

     +static int parse_format_cb(const struct option *opt,
    -+                     const char *arg, int unset UNUSED) {
    ++                     const char *arg, int unset UNUSED)
    ++{
     +  enum output_format *format = opt->value;
     +
     +  if (opt->short_name == 'z')
    @@ builtin/repo.c: static int print_fields(int argc, const char **argv,
     +                         PARSE_OPT_NONEG, parse_format_cb),
     +          OPT_CALLBACK_F('z', NULL, &format, NULL,
     +                         N_("synonym for --format=nul"),
    -+                         PARSE_OPT_NONEG|PARSE_OPT_NOARG,
    ++                         PARSE_OPT_NONEG | PARSE_OPT_NOARG,
     +                         parse_format_cb),
                OPT_END()
        };
2:  b2b241f401 = 2:  6258316d93 repo: add the field objects.format

Lucas Seiki Oshiro (2):
  repo: add the flag -z as an alias for --format=nul
  repo: add the field objects.format

 Documentation/git-repo.adoc |  9 ++++++--
 builtin/repo.c              | 45 +++++++++++++++++++++++++++----------
 t/t1900-repo.sh             | 18 +++++++++++++++
 3 files changed, 58 insertions(+), 14 deletions(-)

-- 
2.39.5 (Apple Git-154)





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux