Thread (86 messages) 86 messages, 8 authors, 2019-03-15

Re: [PATCH v13 18/27] stash: convert create to builtin

From: Johannes Schindelin <hidden>
Date: 2019-03-08 15:31:07

Possibly related (same subject, not in this thread)

Hi Peff,

On Thu, 7 Mar 2019, Jeff King wrote:
On Mon, Feb 25, 2019 at 11:16:22PM +0000, Thomas Gummerer wrote:
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help