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

Re: [PATCH 2/2] log: remove redundant check for merge commit

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Jul 29, 2012, 04:57 UTC
Message-ID
<CAOeW2eELzcqnecZqea2K0vO818PTYf-P=xEoSKb5GcW7W0Nf+A@mail.gmail.com>
In-Reply-To
<CAOeW2eG4mKTWm7PEGF_t0F9c_X1gkQaDw7HSrCiZaDte7PvOdQ@mail.gmail.com>
Sorry, I meant to CC the list. See below.

On Sat, Jul 28, 2012 at 9:56 PM, Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> wrote:

Show 24 quoted lines
> On Fri, Jul 27, 2012 at 11:52 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>> It seems to have some interaction with your other topic, though.
>> These two patches alone will pass the existing tests, but merging it
>> with mz/rebase-range breaks t3412.  I didn't look into it, but
>> perhaps this breaks "git cherry" in some way?
>
> Yes, it breaks "git cherry" quite badly, by not ignoring merges at
> all. I incorrectly assumed that ignore_merges was about revision
> traversal, but now I think it's only diff output from 'git log' (and
> possibly others). What I think tricked me was seeing that
> "ignore_merges = 1" closely followed by a comment saying "ignore
> merges". But now I think the explicit code to "ignore merges" is
> necessary (as show by the failing test case), but can be replaced by
> "rev_info.max_parents = 1". Setting "ignore_merges = 1", OTOH, now
> seems doubly redundant: not only does it set the same value as was set
> in init_revisions, but it's also irrelevant. Since cherry doesn't
> generate any diff output, I think ignore_merges is never used.
> Flipping the values of all of "ignore_merges", "combine_merges" and
> "diff" does not have any effect on test cases at least. I hope my
> explanation makes some sense at least...
>
> I'll send a reroll when I get time.
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 10 in “Small log simplifications”
  1. 0/2 Small log simplificationsMartin von Zweigbergk, Jul 27, 2012
  2. 1/2 remove unnecessary parameter from get_patch_ids()Martin von Zweigbergk, Jul 27, 2012
  3. Junio C HamanoJul 27, 2012
  4. Martin von ZweigbergkJul 28, 2012
  5. 2/2 log: remove redundant check for merge commitMartin von Zweigbergk, Jul 27, 2012
  6. Junio C HamanoJul 27, 2012
  7. Martin von ZweigbergkJul 28, 2012
  8. Junio C HamanoJul 28, 2012
  9. Martin von ZweigbergkJul 29, 2012
  10. Junio C HamanoJul 29, 2012

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.