]> git.eshelyaron.com Git - emacs.git/commit
Factor out vc--with-backend-in-rootdir
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 4 Jun 2025 12:11:14 +0000 (13:11 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:39 +0000 (22:00 +0200)
commit8c95f9049f8cc60a930ca9137f6d553bd3e74102
treef30f5eb99d482a60c777558b7cfb124e90a3fe80
parentd828880938d5bafe054c351663f32430d10c980a
Factor out vc--with-backend-in-rootdir

* lisp/vc/vc.el (vc--with-backend-in-rootdir): New macro.
(vc-root-version-diff, vc-diff-mergebase, vc-root-diff)
(vc-print-root-log, vc-log-mergebase): Use it.
(vc-log-incoming, vc-log-outgoing): Use it here too in order to
prompt for a directory if current buffer is not VCS-controlled.

(cherry picked from commit 69b245cf4fe54203a330553954250ca76b40ab47)
lisp/vc/vc.el