summaryrefslogtreecommitdiff
path: root/etc/NEWS
diff options
context:
space:
mode:
authorDmitry Gutov <dmitry@gutov.dev>2023-12-15 22:26:59 +0200
committerDmitry Gutov <dmitry@gutov.dev>2023-12-15 22:37:40 +0200
commit5b80894d0a7ff94496c37bad595579c29f5a925c (patch)
tree9aacd16fa77adae1966ebf06b8afca0eccb1b5a6 /etc/NEWS
parent8e0882d17a38cb9d309df705e76a8e88529f30a9 (diff)
downloademacs-5b80894d0a7ff94496c37bad595579c29f5a925c.tar.gz
Support viewing VC change history across renames (Git, Hg)
* lisp/vc/vc.el (vc-print-log-setup-buttons): When the log ends at a rename, add a button to jump to the previous names. Use the new backend action 'file-name-changes'. * lisp/vc/vc-git.el (vc-git-print-log-follow): New option. (vc-git-file-name-changes): Implementation (bug#55871, bug#39044). (vc-git-print-log-follow): Update docstring. * lisp/vc/log-view.el (log-view-find-revision) (log-view-annotate-version): Pass the log's VC backend explicitly. * lisp/vc/vc-hg.el (vc-hg-file-name-changes): Add Hg implementation (bug#13004). * etc/NEWS: Mention the changes.
Diffstat (limited to 'etc/NEWS')
-rw-r--r--etc/NEWS10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1ff2f8a..29b3d66 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -457,6 +457,16 @@ With this value only the revision number is displayed on the mode-line.
*** Obsolete command 'vc-switch-backend' re-added as 'vc-change-backend'.
The command was previously obsoleted and unbound in Emacs 28.
+*** Support for viewing VC change history across renames.
+When a fileset's VC change history ('C-x v l') ends at a rename, we
+now print the old name(s) and a button which jumps to their history.
+Git and Hg are supported. Naturally, 'vc-git-print-log-follow' should
+be nil for this to work (or '--follow' should not be in
+'vc-hg-print-log-switches', in Hg's case).
+
+*** New option 'vc-git-file-name-changes-switches'.
+It allows tweaking the thresholds for rename and copy detection.
+
** Diff mode
+++