Re: [PATCH v2 5/5] submodule: port submodule subcommand 'summary' from shell to C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 6, 2020, 22:45 UTC
- Message-ID
- <xmqq5z9vjsvz.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200806164102.6707-6-shouryashukla.oo@gmail.com>
Shourya Shukla <shouryashukla.oo@gmail.com> writes:
> ...
Show 5 quoted lines
> + argv_array_pushl(&cp_log.args, "--pretty= %m %s", > + "--first-parent", NULL); > + argv_array_pushf(&cp_log.args, "%s...%s", > + src_abbrev, > + dst_abbrev);
> ...
> + diff_args.argc = setup_revisions(diff_args.argc, diff_args.argv, > + &rev, NULL);
Peff's jk/strvec topic will soon be in 'master', and basing the series on top of 'master' after that happens would make these lines to read like
strvec_pushl(&cp_log.args, "--pretty= %m %s", "--first-parent", NULL); strvec_pushf(&cp_log.args, "%s...%s", src_abbrev, dst_abbrev);
diff_args.nr = setup_revisions(diff_args.nr, diff_args.v, &rev, NULL);
We may even be able to reduce line wrapping thanks to shortening a few common words:
argv_array => strvec
argc => nc
argv => vFor today's integration, I dealt with these as conflict resolution, so let's keep review discussion going, and hope jk/strvec is in 'master' by the time this topic becomes ready.
Thanks.