Commit Graph

10 Commits (1546458f7df4a4f0e77b7ae5cb65baed6feae394)

Author SHA1 Message Date
Lunny Xiao 45d1fc03cb
fix go vet error ()
Ethan Koenig b38b61bbc1 Fix import order ()
Bo-Yi Wu 6510e57758 fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Sandro Santilli f6a11e0de1 More MixedCase consts
Unknwon 8bf57be9ba Fix git diff tests
Andrey Nering 2772791fda Improve diff highlight ()
- Try to reduce memory allocations
- Add possibility to disable diff highlight (can improve performance for large diffs)
- Tweaking with cost for prettier (cleaner) diffs
- Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
Andrey Nering 137a49e834 go fmt models/git_diff_test.go
Andrey Nering 9620f48ed0 Fix test case after 86bce4a2ae.
Andrey Nering 697b0e2aba Fix: now highlights in diff view are getting the correct lines.
Andrey Nering 73474c043b Highlighting differences of lines in the diff view.