Re: [PATCH v13 18/27] stash: convert create to builtin
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 8, 2019, 15:30 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1903081630040.41@tvgsbejvaqbjf.bet>
- In-Reply-To
- <20190307191836.GB29221@sigill.intra.peff.net>
Hi Peff,
On Thu, 7 Mar 2019, Jeff King wrote:
Show 12 quoted lines
> On Mon, Feb 25, 2019 at 11:16:22PM +0000, Thomas Gummerer wrote:
>
> > +static void add_pathspecs(struct argv_array *args,
> > + struct pathspec ps) {
>
> Here and elsewhere in the series, I notice that we pass the pathspec
> struct by value, which is quite unusual for our codebase (and
> potentially confusing, if any of the callers were to mutate the pointers
> in the struct).
>
> Is there any reason this shouldn't be "const struct pathspec *ps" pretty
> much throughout the file?I am quite certain that this is merely an oversight. It totes slipped by my review, for example.
Thanks for catching! Dscho