Robin Rosenberg <robin.rosenberg.lists@xxxxxxxxxx> writes: > Increase the context size from the default three lines. Something like > diff -U 7 old new will require larger chunks of unchanged code for diff > break up a hunk. With git you can do > > GIT_DIFF_OPTS=-u7 git-diff-.... I think you can say "git diff -U7" to do what you are describing, but I do not think that does what you want. I think what you want is a "negative context", which says "do not consider group of lines less than N lines as matching between preimage and postimage". What Ilpo wants is to see something like this: - Deleted 1 - Deleted 2 - Deleted 3 ... - Deleted 400 + Added 1 + Added 2 + Added 3 ... + Added 500 /* happens to match because this was left intact,too */ - Deleted 401 - Deleted 402 - Deleted 403 + Added 501 as if the small context lines that happen to match are also part of the change, like this: - Deleted 1 - Deleted 2 - Deleted 3 ... - Deleted 400 - /* happens to match because this was left intact,too */ - Deleted 401 - Deleted 402 - Deleted 403 + Added 1 + Added 2 + Added 3 ... + Added 500 + /* happens to match because this was left intact,too */ + Added 501 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html