From: Jacob Keller Date: Thu, 18 Aug 2016 18:29:23 GMT Subject: Re: [PATCH v7 2/7] graph: add support for --line-prefix on all graph-aware output Message-ID: In-Reply-To: On Thu, Aug 18, 2016 at 10:56 AM, Stefan Beller wrote: > On Wed, Aug 17, 2016 at 5:51 PM, Jacob Keller wrote: >> - if (!graph) >> + if (!graph) { >> + graph_show_line_prefix(default_diffopt); >> return; >> + } > >> - if (graph_is_commit_finished(graph)) >> + if (graph_is_commit_finished(graph)) { >> + graph_show_line_prefix(&graph->revs->diffopt); >> return 0; >> + } > > This seems to be a reoccurring pattern, i.e. we need to add a lot of > one off instructions before a return. Is it possible to make the call > earlier instead > of just before the returns? (or later for that matter) ? > Not sure what you mean by this...? Just move the call up above this? I think that will work, let me give it a try. Thanks, Jake > > Thanks, > Stefan