开发者

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

开发者 https://www.devze.com 2023-01-26 17:07 出处:网络
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 previo

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?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消