git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kompare won't parse git diffs
@ 2006-08-02 10:07 Andy Parkins
  2006-08-02 17:19 ` Linus Torvalds
  0 siblings, 1 reply; 9+ messages in thread
From: Andy Parkins @ 2006-08-02 10:07 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-08-06  3:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 10:07 kompare won't parse git diffs Andy Parkins
2006-08-02 17:19 ` Linus Torvalds
2006-08-02 18:12   ` Jakub Narebski
2006-08-02 19:17     ` Junio C Hamano
2006-08-06  3:14       ` Paul Eggert
2006-08-02 19:19     ` Linus Torvalds
2006-08-02 20:18       ` Jakub Narebski
2006-08-02 20:51         ` Linus Torvalds
2006-08-02 18:18   ` Andy Parkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).