From 254d2a147760f83fa83d361eb6027ffa4000c2d9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 7 Jun 2022 13:23:22 +0200 Subject: [PATCH] Simplify mode line for vc-print-root-log * lisp/vc/vc.el (vc-print-root-log): Don't display "from " (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 3508f684c49..d6f0f4a4977 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 " in + ;; the mode line isn't helpful. + (setq vc-parent-buffer-name nil))) ;;;###autoload (defun vc-print-branch-log (branch) -- 2.39.2