branch: elpa/magit commit 716b9e64374cdd9b0551c4befd3691d8daee4b20 Author: Martin Joerg <martin.jo...@gmail.com> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-refs--format-margin: Do not assume fixes length of timestamps UNIX timestamps do not have a fixed length. Co-authored-by: Jonas Bernoulli <jo...@bernoul.li> --- 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 024acdc284..62a8fc52b9 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)