[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 254d2a1477: Simplify mode line for vc-print-root-log
From: |
Lars Ingebrigtsen |
Subject: |
master 254d2a1477: Simplify mode line for vc-print-root-log |
Date: |
Tue, 7 Jun 2022 07:24:00 -0400 (EDT) |
branch: master
commit 254d2a147760f83fa83d361eb6027ffa4000c2d9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Simplify mode line for vc-print-root-log
* lisp/vc/vc.el (vc-print-root-log): Don't display "from <file>"
(bug#45007).
---
lisp/vc/vc.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 3508f684c4..d6f0f4a497 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2654,7 +2654,10 @@ with its diffs (if the underlying VCS supports that)."
(error "Directory is not version controlled")))
(setq default-directory rootdir)
(vc-print-log-internal backend (list rootdir) revision revision limit
- (when with-diff 'with-diff))))
+ (when with-diff 'with-diff))
+ ;; We're looking at the root, so displaying " from <some-file>" in
+ ;; the mode line isn't helpful.
+ (setq vc-parent-buffer-name nil)))
;;;###autoload
(defun vc-print-branch-log (branch)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 254d2a1477: Simplify mode line for vc-print-root-log,
Lars Ingebrigtsen <=