{"thread":{"id":"31751","subject":"Ignoring boring lines(that do not contain information) in git diff","startedAt":"2012-10-08T16:44:12Z","lastAt":"2012-11-26T20:35:38Z","messageCount":2,"participants":["Peter Oberndorfer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"200756","messageId":"507302DC.4030207@arcor.de","threadId":"31751","inReplyTo":null,"subject":"Ignoring boring lines(that do not contain information) in git diff","fromName":"Peter Oberndorfer","fromEmail":"kumbayo84@arcor.de","sentAt":"2012-10-08T16:44:12Z","receivedAt":"2012-10-08T16:44:12Z","isPatch":false,"sender":{"key":"kumbayo84@arcor.de","avatar":"https://avatars.githubusercontent.com/u/1041267?v=4"},"body":"Hi,\n\nis there a way to tell git diff about lines that are uninteresting?\nI mean lines which do not contain a lot of information and\nappear several times in pre and post image.\n\nFor example whitespace or language dependent stuff like.\n{\n}\nEND_IF;\nEND_FOR;\nend sub\n\nI have seen diffs that containing 2 interesting hunks splitted by such \nboring lines.\n(I have attached a anonymized version of a real world example where this \nhappens)\n\nI think the diff would be clearer when this boring line was added to the \nsurrounding hunks.\nI already tried patience diff but in my test case it changed nothing.\nI am using git 1.7.10.\n\nThanks,\nGreetings Peter\n\n\n\n\ndiff --git a/Source/Frobble/Blabber.txt b/Source/Frobble/Blabber.txt\nindex 87ccddb..627bc3e 100644\n--- a/Source/Frobble/Blabber.txt\n+++ b/Source/Frobble/Blabber.txt\n@@ -138,73 +138,74 @@ END_VAR\n-         //frobble immediately if immediately flag is set\n-         IF bImmediately AND NOT Array[i].bDisabled THEN\n-            aFrobble(i, Entry);\n+         IF Entry.bBlah THEN\n+               Alarm.Alarm  := SomeAlarm;\n+         ELSE\n+               Alarm := Entry;\n          END_IF;\n          \n-         // signal if frobble count has changed\n-         iChanged := iChanged + 1;\n-         EXIT;\n+         IF Array[i].Alarm = Alarm THEN\n+            //do not brabble if alarm is gobbled\n+               EXIT;\n+         END_IF;\n       END_IF;\n-   END_FOR;\n-ELSE\n-   aExample(Name := 'aaa',\n-            ID1 := 1);\n-END_IF;\n+   ELSE\n+      //entry not found, adding"},{"id":"203917","messageId":"50B3D29A.2070805@arcor.de","threadId":"31751","inReplyTo":"507302DC.4030207@arcor.de","subject":"Re: Ignoring boring lines(that do not contain information) in git diff","fromName":"Peter Oberndorfer","fromEmail":"kumbayo84@arcor.de","sentAt":"2012-11-26T20:35:38Z","receivedAt":"2012-11-26T20:35:38Z","isPatch":false,"sender":{"key":"kumbayo84@arcor.de","avatar":"https://avatars.githubusercontent.com/u/1041267?v=4"},"body":"On 2012-10-08 18:44, Peter Oberndorfer wrote:\n> Hi,\n>\n> is there a way to tell git diff about lines that are uninteresting?\n> I mean lines which do not contain a lot of information and\n> appear several times in pre and post image.\n>\n> For example whitespace or language dependent stuff like.\n> {\n> }\n> END_IF;\n> END_FOR;\n> end sub\n>\n> I have seen diffs that containing 2 interesting hunks splitted by such boring lines.\n> (I have attached a anonymized version of a real world example where this happens)\n>\n> I think the diff would be clearer when this boring line was added to the surrounding hunks.\n> I already tried patience diff but in my test case it changed nothing.\n> I am using git 1.7.10.\n>\n\nHi,\n\ndoes anybody have a idea if this is possible?\nOr some comments if they would find such a feature useful?\n\nGreetings Peter\n\n\nexample_diff_boring_split.diff\n\ndiff --git a/Source/Frobble/Blabber.txt b/Source/Frobble/Blabber.txt\nindex 87ccddb..627bc3e 100644\n--- a/Source/Frobble/Blabber.txt\n+++ b/Source/Frobble/Blabber.txt\n@@ -138,73 +138,74 @@ END_VAR\n-         //frobble immediately if immediately flag is set\n-         IF bImmediately AND NOT Array[i].bDisabled THEN\n-            aFrobble(i, Entry);\n+         IF Entry.bBlah THEN\n+               Alarm.Alarm  := SomeAlarm;\n+         ELSE\n+               Alarm := Entry;\n          END_IF;\n-         // signal if frobble count has changed\n-         iChanged := iChanged + 1;\n-         EXIT;\n+         IF Array[i].Alarm = Alarm THEN\n+            //do not brabble if alarm is gobbled\n+               EXIT;\n+         END_IF;\n       END_IF;\n-   END_FOR;\n-ELSE\n-   aExample(Name := 'aaa',\n-            ID1 := 1);\n-END_IF;\n+   ELSE\n+      //entry not found, adding\n"}]}