From: Junio C Hamano Date: Fri, 09 Aug 2019 17:54:18 GMT Subject: Re: [PATCH v3 5/7] quote: add sq_append_quote_argv_pretty() Message-ID: In-Reply-To: <2002108a30246824f8017da1dea344c1a96f7de2.1565362851.git.gitgitgadget@gmail.com> "Jeff Hostetler via GitGitGadget" writes: > +/* > + * Legacy function to append each argv value, quoted as necessasry, > + * with whitespace before each value. This results in a leading > + * space in the result. > + */ > void sq_quote_argv_pretty(struct strbuf *dst, const char **argv) > +{ > + if (argv[0]) > + strbuf_addch(dst, ' '); > + sq_append_quote_argv_pretty(dst, argv); Micronit (not worth a reroll): if !argv[0], there is no need to call append, either.