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

kompare won't parse git diffs

From
APAndy Parkins <andyparkins@gmail.com>
Date
Aug 2, 2006, 10:07 UTC
Message-ID
<200608021107.43485.andyparkins@gmail.com>
Hello,
Kompare just shows blank for diffs redirected from git.  This makes it 

I've tracked down the cause and it seems to be on the file declaration lines. Here is a sample diff that kompare will not show.

diff --git a/file b/file
index a8b2ec6..a1e65fd 100644
--- a/file
+++ b/file
@@ -1,2 +1,3 @@
 initial contents goes in master branch
 additional content added in repo1#master
+blah

As you can see, it's a simple addition of the line "blah".  Kompare shows this 
diff as blank.  Now if I modify the file so that the "---" and "+++" lines 
both have "<tab>(something)" added:

diff --git a/file b/file
index a8b2ec6..a1e65fd 100644
--- a/file      (anything can go here)
+++ b/file      (anything can go here)
@@ -1,2 +1,3 @@
 initial contents goes in master branch
 additional content added in repo1#master
+blah

http://bugs.kde.org/show_bug.cgi?id=131717

I've posted a bug for kompare, but thought that maybe it would be handy if git 
outputted those bracketed comments anyway - I notice that "diff -u" from the 
command line does (although it uses the timestamp of the file).  Maybe the 
object hash of the files being compared could go here?


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
Next: Linus Torvalds
Message 1 of 9 in “kompare won't parse git diffs”
  1. Andy ParkinsAug 2, 2006
  2. Linus TorvaldsAug 2, 2006
  3. Jakub NarebskiAug 2, 2006
  4. Junio C HamanoAug 2, 2006
  5. Paul EggertAug 6, 2006
  6. Linus TorvaldsAug 2, 2006
  7. Jakub NarebskiAug 2, 2006
  8. Linus TorvaldsAug 2, 2006
  9. Andy ParkinsAug 2, 2006

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.