emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-backup 3793220 2/2: Mention file size in vc-log


From: ELPA Syncer
Subject: [elpa] externals/vc-backup 3793220 2/2: Mention file size in vc-log
Date: Sat, 23 Oct 2021 14:57:31 -0400 (EDT)

branch: externals/vc-backup
commit 37932205b9f170db65d6687bd3d8c07a259f825b
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Mention file size in vc-log
---
 vc-backup.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vc-backup.el b/vc-backup.el
index f5368b4..0d1f3d4 100644
--- a/vc-backup.el
+++ b/vc-backup.el
@@ -306,8 +306,10 @@ The results are written into BUFFER."
                (uid (file-attribute-user-id attr))
                (user (or (user-login-name uid) uid))
                (time (file-attribute-modification-time attr))
+               (size (file-attribute-size attr))
                (date (format-time-string "%c" time)))
-          (insert (format "%s%s\t%s (%s)\n" base (car rev) date user)))))
+          (insert (format "%s%s\t%s (%s)\t%s\n" base (car rev) date user
+                          (file-size-human-readable size nil " " "B"))))))
     (goto-char (point-min))
     (forward-line 2))
   'limit-unsupported)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]