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

Re: Bug in gitk: can't unset "idinlist(...) ..."

From
Jeff King <peff@peff.net>
Date
Aug 11, 2007, 13:49 UTC
Message-ID
<20070811134927.GA2411@coredump.intra.peff.net>
In-Reply-To
<18109.21984.26228.849806@cargo.ozlabs.ibm.com>
On Sat, Aug 11, 2007 at 04:23:28PM +1000, Paul Mackerras wrote:
> There has been a commit with duplicate parents in the kernel git tree
> for ages (13e65280), and gitk handles it just fine, so I don't think
> it's simply a problem with duplicate parents.

gitk fails with this test script, which creates two commits, the second one referencing the first as a duplicate:

mkdir repo && cd repo && git-init && echo one >file && git-add file && git-commit -m one && echo two >file && git-add file && tree=$(git-write-tree) && parent=$(git-rev-parse HEAD) && commit=$(git-commit-tree $tree -p $parent -p $parent <file) && git-update-ref HEAD $commit && gitk

To run it, you will actually need to disable git-commit-tree's checking for duplicate parents. You can do this by commenting out the call to new_parent in builtin-commit-tree.c:114.

-Peff
Previous: Paul MackerrasNext: Paul Mackerras
Message 7 of 10 in “Bug in gitk: can't unset "idinlist(...) ..."”
  1. Brian HetroAug 10, 2007
  2. Jeff KingAug 10, 2007
  3. Jeff KingAug 10, 2007
  4. Jeff KingAug 10, 2007
  5. Linus TorvaldsAug 10, 2007
  6. Paul MackerrasAug 11, 2007
  7. Jeff KingAug 11, 2007
  8. Paul MackerrasAug 12, 2007
  9. Junio C HamanoAug 12, 2007
  10. Paul MackerrasAug 13, 2007

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.