[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got ba51d2414f 1/2: fix vc-got-print-log with files
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got ba51d2414f 1/2: fix vc-got-print-log with files in subdirs |
Date: |
Sat, 23 Jul 2022 06:58:03 -0400 (EDT) |
branch: externals/vc-got
commit ba51d2414feec77347ec3c69eeab583a88988122
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
fix vc-got-print-log with files in subdirs
otherwise the file-relative-name is computed relatively to the current
directory (i.e. you get back the basename) and vc-got--log fails.
---
vc-got.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 004b64be25..9195be6cd8 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -693,9 +693,10 @@ LIMIT limits the number of commits, optionally starting at
START-REVISION."
(vc-setup-buffer buffer)
(with-current-buffer buffer
- (let ((inhibit-read-only t))
+ (let ((worktree-path (vc-got-root default-directory))
+ (inhibit-read-only t))
(cl-loop for file in files
- do (vc-got--log (file-relative-name file)
+ do (vc-got--log (file-relative-name file worktree-path)
limit
start-revision)))))