cefstat
cefstat

Reputation: 2406

Diff in Emacs between version of file in working dir and previous commit in git repo

I have a git repository. I edit a file from the repository in Emacs and I want to use ediff in Emacs to see the differences between the text in the buffer visiting the file and a previous commit of the same file (by default the last commit). Is this possible / easy to do?

Upvotes: 18

Views: 8094

Answers (2)

brontitall
brontitall

Reputation: 951

Sounds like M-x ediff-revision is what you want. It allows you to refer to revisions using the normal syntax you use for your RCS, such as git.

I see that there's a similar question here

Upvotes: 27

hpavc
hpavc

Reputation: 1335

Git is well supported. You should be able to use the normal vc package "C-x v = vc-diff".

Upvotes: 13

Related Questions