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

Re: [PATCH 0/2] log_tree_diff: simplify

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 6, 2020, 21:52 UTC
Message-ID
<xmqq1rje4loz.fsf@gitster.c.googlers.com>
In-Reply-To
<20200828110526.21145-1-sorganov@gmail.com>
Sergey Organov <sorganov@gmail.com> writes:
Show 9 quoted lines
> These patches are pure code quality improvements, -- they should introduce no
> changes in behavior.
>
> Sergey Organov (2):
>   log_tree_diff: get rid of code duplication for first_parent_only
>   log_tree_diff: get rid of extra check for NULL
>
>  log-tree.c | 21 +++++----------------
>  1 file changed, 5 insertions(+), 16 deletions(-)

It's been so long since I looked at the codepath that it wasn't immediately clear to me if we are doing the right thing around log->parent until I reread 91539833 (Log message printout cleanups, 2006-04-17) to rediscover what the field was for, but everything looks good to me.

Previous: Sergey Organov
Message 5 of 5 in “log_tree_diff: simplify”
  1. 0/2 log_tree_diff: simplifySergey Organov, Aug 28, 2020
  2. 2/2 log_tree_diff: get rid of extra check for NULLSergey Organov, Aug 28, 2020
  3. 1/2 log_tree_diff: get rid of code duplication for first_parent_onlySergey Organov, Aug 28, 2020
  4. Sergey OrganovSep 4, 2020
  5. Junio C HamanoSep 6, 2020

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.