git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v7 2/7] graph: add support for --line-prefix on all graph-aware output

From
Jacob Keller <jacob.keller@gmail.com>
Date
Aug 18, 2016, 18:29 UTC
Message-ID
<CA+P7+xpEDy5xqNp=tFGauE7+N2hnaGgzZKr2neM2p6G6kvchWQ@mail.gmail.com>
In-Reply-To
<CAGZ79kZeSwteU84-=GZ0cZDCJUf6=VrGzAiNqC_gx7DgTQX-8Q@mail.gmail.com>
On Thu, Aug 18, 2016 at 10:56 AM, Stefan Beller <sbeller@google.com> wrote:
Show 18 quoted lines
> On Wed, Aug 17, 2016 at 5:51 PM, Jacob Keller <jacob.e.keller@intel.com> 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
Previous: Jacob Keller
Message 3 of 3 in “Re: [PATCH v7 2/7] graph: add support for --line-prefix on all graph-aware output”
  1. Stefan BellerAug 18, 2016
  2. Jacob KellerAug 18, 2016
  3. Jacob KellerAug 18, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.