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

interaction between --graph and --simplify-by-decoration

From
SBSanti Béjar <santi@agolina.net>
Date
Jul 31, 2009, 11:11 UTC
Message-ID
<adf1fd3d0907310411j401b4e89r5f1dfc2b0d3b7ff4@mail.gmail.com>
Hello,
  I've found that in some cases the --graph and
--simplify-by-decoration don't work well together. If you do this in
the git.git repository:
$ git log --graph --simplify-by-decoration --oneline v1.6.3.3
* cff4231 (tag: v1.6.3.3) GIT 1.6.3.3
* 6c7f58d (tag: v1.6.3.2) GIT 1.6.3.2
* 4774780 (tag: v1.6.3.1) GIT 1.6.3.1
* f01f109 (tag: v1.6.3) GIT 1.6.3
*   3536ae3 Sync with GIT 1.6.2.5
|\
| * a48f5d7 (tag: v1.6.2.5) GIT 1.6.2.5
| *   00f97c7 Merge branch 'maint-1.6.1' into maint
| |\
| | * bab39ed (tag: v1.6.1.4) GIT 1.6.1.4
* | | 503f464 (tag: v1.6.3-rc4) GIT 1.6.3-rc4
* | | 95110d7 (tag: v1.6.3-rc3) t4202: fix typo
* | | f29ac4f (tag: v1.6.3-rc2) GIT 1.6.3-rc2
 / /
| | *   66996ec Sync with 1.6.2.4
| | |\
| |_|/
|/| |
* | | 1f9b620 (tag: v1.6.2.4) GIT 1.6.2.4
| | * 77b96d6 (tag: v1.6.3-rc1) Update draft release notes to 1.6.3
| | * c965c02 (tag: v1.6.3-rc0) GIT 1.6.3-rc0
| |/
|/|

you can see that f29ac4f looks like it does not have any parents while the correct parent is 66996ec which seems to have no children. But if you omit the --oneline you can see that there are a lot of "root"-like commits (f01f109, a48f5d7, f29ac4f,...).

gitk gets it right, and I've test also the first commit with both flags and it happens the same.

Thanks, Santi

Message 1 of 1 in “interaction between --graph and --simplify-by-decoration”
  1. Santi BéjarJul 31, 2009

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.