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

Path filtered history not maximally simplified

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 21, 2008, 12:46 UTC
Message-ID
<47E3AE38.5060405@viscovery.net>

While investigating a path-filtered history in gitk, I noticed a layout like this:

     --A---------M--4--N
        \       /     /
         1--2--3-----5

There are no commits displayed on the upper line between A and M. Shouldn't this have been simplified to:

                  4--N
                 /  /
     --A--1--2--3--5
The gitk command used is simply:
     $ gitk some/file
and if I run
     $ git log some/file

then M is reported with two parents (so it's not gitk's fault). The above is just the most recent part of the history; there's a lot more older history, and it is non-trivial with numerous merges (in the complete history). In particular, there _are_ commits on the upper branch between A and M, but none of them touches some/file.

Do I need to adjust my expectations or does this look like a bug?
-- Hannes
PS: This is with 1.5.5.rc0.21.g740fd.
Next: Johannes Sixt
Message 1 of 3 in “Path filtered history not maximally simplified”
  1. Johannes SixtMar 21, 2008
  2. Johannes SixtMar 21, 2008
  3. Junio C HamanoMar 22, 2008

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.