1

I like to see full file history regardless file renames (and with Java convention class name == file name several refactoring makes following history difficult).

4

This is possible in Emacs 26.1. You need to set the configuration variable vc-git-print-log-follow to t. The functionality was implemented in the following commit:

https://github.com/emacs-mirror/emacs/commit/8663fad0a70e60e130ae4cd0529ead66fbad2250

That change is a workaround for Emacs bug #8756: vc-git.el doesn't use --follow argument in vc-git-print-log but is not considered a full solution.

In the resulting *vc-change-log* buffer, not all commands are fully working. For example log-view-diff (invoked by pressing d) and log-view-annotate-version (invoked by pressing a) do not work for commits before the rename, but log-view-diff-changeset (invoked by pressing D) does work.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 1
    Please also summarize in your answer what you expect someone to learn wrt your answer if they follow the link. This is close to being a link-only answer (it's not link-only, but it could be better). Link-only answers are typically deleted. – Drew Feb 2 at 0:09
  • Great! This feature is marked for v26.1. I gave up with porting my .emacs and debugging issues with packages. So currently is at v25.3 (( – gavenkoa Feb 2 at 16:00
  • @Drew, thanks for the feedback. I have expanded my answer. – Peter Osterlund Feb 3 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.