I like to see full file history regardless file renames (and with Java convention class name == file name several refactoring makes following history difficult).
1 Answer
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.
-
1Please 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.– DrewCommented Feb 2, 2019 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 ((– gavenkoaCommented Feb 2, 2019 at 16:00 -
@Drew, thanks for the feedback. I have expanded my answer. Commented Feb 3, 2019 at 6:41