branch: elpa/magit
commit 716b9e64374cdd9b0551c4befd3691d8daee4b20
Author: Martin Joerg <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-refs--format-margin: Do not assume fixes length of timestamps
UNIX timestamps do not have a fixed length.
Co-authored-by: Jonas Bernoulli <[email protected]>
---
lisp/magit-refs.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-refs.el b/lisp/magit-refs.el
index 024acdc2840..62a8fc52b97 100644
--- a/lisp/magit-refs.el
+++ b/lisp/magit-refs.el
@@ -807,10 +807,8 @@ line is inserted at all."
(defun magit-refs--format-margin (commit)
(save-excursion
(goto-char (line-beginning-position 0))
- (let ((line (magit-rev-format "%ct%cN" commit)))
- (magit-log-format-margin commit
- (substring line 10)
- (substring line 0 10)))))
+ (let ((line (magit-rev-format "%cN%x00%ct" commit)))
+ (apply #'magit-log-format-margin commit (split-string line "\0")))))
;;; _
(provide 'magit-refs)