From: Stefan Beller Date: Mon, 10 Jul 2017 23:38:54 GMT Subject: Re: [GSoC][PATCH 1/8] submodule--helper: introduce get_submodule_displaypath() Message-ID: In-Reply-To: <20170710233247.GC161700@google.com> On Mon, Jul 10, 2017 at 4:32 PM, Brandon Williams wrote: >> if (!is_submodule_active(the_repository, path)) { >> - strbuf_reset(&sb); > > Is this line removal intended? It doesn't look related to the rest of > this patch. It is, as &sb is re-used and has to be cleared first. With the code above removed, &sb is unmodified since struct strbuf sb = STRBUF_INIT; hence the removal is ok here. It is related, but only when looking at the entirety of the code. :-/