Search code examples
gitemacsmagit

View a file's history in Magit?


View the change history of a file using Git versioning talks about other ways of viewing history of a file in Git.

Can it be done in Emacs Magit?


Solution

  • Since magit 2.1: magit-log-buffer-file (as per comment below)

    Before magit 2.1: magit-file-log is what you are looking for. It will show you all commits for the file in the current buffer in the standard magit log view.