Sublime Forum

Highlighting source code changed between git revA and revB

#1

Is there a way to use Sublime Text such that differences between revA and revB are highlighted?

The best I can come up with is:

$ git checkout revA
$ subl -a .
$ git checkout revB – .

And this should show the changed lines in the Git gutter. It would be nice if there were a way to navigate between changes, or some way to further highlight changed lines.

0 Likes

#2

You can do this in Sublime Merge by selecting 2 commits.

1 Like

#3

Definitely can do it with external tools, currently I like using git-delta to get syntax highlighting for diffs:

0 Likes