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

gitk diff fails on merges

From
LCLorenzo Campedelli <lorenzo.campedelli@tele2.it>
Date
Nov 12, 2005, 13:34 UTC
Message-ID
<dl4r17$7vl$1@sea.gmane.org>
Hello,
I'm using the following:

[campedel@betelgeuse ~]$ git --version git version 0.99.9g [campedel@betelgeuse ~]$ cg --version cogito-0.16rc1

I think there's a bug in gitk diffing, both
	'Diff selected -> this'
and
	'Diff this -> selected'
fail when applied on the result of a merge.

To replicate the problem you can use the attached script and then try diffing against branch_1 head.

Thanks for your attention (and for your wonderful work!)
Lorenzo

cg init echo abc > a.file cg add a.file cg commit -m 'added a.file' cg tag tag_1 echo def >> a.file cg commit -m 'modified a.file' git checkout -b branch_1 tag_1 echo ghi > b.file cg add b.file cg commit -m 'added b.file' cg merge -c master cg commit -m 'merged with master' gitk --all

exit
Message 1 of 1 in “gitk diff fails on merges”
  1. Lorenzo CampedelliNov 12, 2005

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.