FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Lines starting with minus or plus show as changed lines in diff. #647

Open bakkerthehacker opened 8 years ago

bakkerthehacker commented 8 years ago

Some files contain - or + as the first character in some of their lines, yaml being a good example. If these files are modified near these lines, they are incorrectly highlighted in red or green in the diff viewer. This also messes with the line numbers shown in the diff viewer.

jung-kim commented 8 years ago

So this is the result of me being lazy.

Ungit uses diff generator called diff2html and that had regex problem which was reported and fixed.

Now that diff2html version is bumped to a fixed version this will be resolved in next release.