2

Local History is a feature in IntelliJ and Eclipse, which for every file keeps a history of its changes:

It is not a replacement for revision control systems like Git, but I found it useful when experimenting with code.

Is there a way in Emacs to allow browsing through changes in one file and being able to select one version and revert to it?

Drew
  • 77,472
  • 10
  • 114
  • 243
Philipp Claßen
  • 169
  • 1
  • 6
  • https://github.com/pidu/git-timemachine – wasamasa Oct 06 '16 at 06:19
  • See ftp://ftp.gnu.org/old-gnu/Manuals/elisp-manual-20-2.5/html_chapter/elisp_toc.html#TOC397 to make numbered backups (with some more configuration you can get something similar to Eclipse's local history). – wvxvw Oct 06 '16 at 08:09

2 Answers2

4

I think undo-tree looks like the closest match to these features. Although, it's hardly a one-to-one match.

It is possible to navigate between changes more readily by visualizing the 'tree' of changes using C-xu. It is then possible to navigate to the various changes.

There are no similar 'diffing' or 'timestamping' features available as far as I know.

Xaldew
  • 1,231
  • 9
  • 21
-1

That is the plugin you are searching Emacs-localhistory

George
  • 1
  • Please explain your answer more to make it self-contained. We prefer not to have link-only answers. – Dan Jun 18 '18 at 13:17