Skip to content

repo: add -z and objects.format

Lucas Seiki Oshiro git 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 2 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches20 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2repo: add the flag -z as an alias for --format=nulDocumentation/git-repo.adoc builtin/repo.c t/t1900-repo.sh+42 -140 replies
2/2repo: add the field objects.formatDocumentation/git-repo.adoc builtin/repo.c t/t1900-repo.sh+16 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchKarthik NayakPatrick Steinhardt
1/2Mentored-by Mentored-by
2/2Mentored-by Mentored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

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

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(-)
Signature · 1 line
2.39.5 (Apple Git-154)