git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Diff output from a rewrite of a function
@ 2007-03-08 19:04 Ilpo Järvinen
  2007-03-08 22:01 ` Robin Rosenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2007-03-08 19:04 UTC (permalink / raw)
  To: git

Hi,

I have a C source file in which couple of functions are fully rewritten 
(only a part of the file), almost no real similarities (block closing 
parents will obviously match still and couple of other keyword lines here 
and there). I wonder if there is way to produce diff that does not get 
confused by the empty lines / identical lines that are present in both 
original and the modified version. Default diff output is very bad looking 
(IMHO) because these identical lines cause a "synchronization point" to 
occur, that is, each identical line of the original is not considered as 
+/- but left as is. Thus I have something like 3-6 add+del blocks per 
function with a part of the change rather than e.g., one block per 
function or so... I found -B from man git-diff-files, but I guess 
"complete rewrite changes" means whole files as it did do anything.

Any ideas?

I'm currently using 1.4.2, if that's significant.

-- 
 i.

ps. Please cc me when replying.

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

end of thread, other threads:[~2007-03-09 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 19:04 Diff output from a rewrite of a function Ilpo Järvinen
2007-03-08 22:01 ` Robin Rosenberg
2007-03-08 23:24   ` Junio C Hamano
2007-03-09  8:39     ` Ilpo Järvinen
2007-03-09 19:47     ` Robin Rosenberg

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).