{"thread":{"id":"40133","subject":"BUG REPORT: gitk displays diffs with angle brackets incorrectly","startedAt":"2015-08-19T19:57:02Z","lastAt":"2015-08-19T19:57:02Z","messageCount":1,"participants":["Yojem Mejoy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"268344","messageId":"trinity-67046fdf-65d7-4ab9-a391-709a73002fee-1440014221975@3capp-mailcom-bs12","threadId":"40133","inReplyTo":null,"subject":"BUG REPORT: gitk displays diffs with angle brackets incorrectly","fromName":"Yojem Mejoy","fromEmail":"yojem@gmx.com","sentAt":"2015-08-19T19:57:02Z","receivedAt":"2015-08-19T19:57:02Z","isPatch":false,"sender":{"key":"yojem@gmx.com","avatar":null},"body":"Summary: Certain diffs containing angle brackets ('<' or '>' characters) are displayed incorrectly in gitk's \"markup words\" and \"color words\" modes. The bug is caused by a feature that isn't aware of the formatting difference for the word diff modes.\n\nHow to reproduce the bug:\n \nCreate a file with the following, and commit:\nx < 1\ny > 2\n \nModify it to this, and commit:\nz < 1\nw > 2\n \nThen view the results with:\ngitk --color-words\n \nYou will see:\n * \"Diff\" shows bogus removal on 1st line and bogus addition on 2nd line.\n * \"Old version\" cuts off at right angle bracket.\n * \"New Version\" cuts off at left angle bracket.\n\nI personally use a 2-line patch to fix this by disabling/breaking the feature that does string comparisons for \"  >\" and \"  <\", but I know that's not the correct fix, so I'm not including it in this post.\n"}]}