[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit d5ed87b138 1/9: magit-margin-default-time-forma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit d5ed87b138 1/9: magit-margin-default-time-format: New un-advertised variable |
Date: |
Tue, 22 Feb 2022 05:58:10 -0500 (EST) |
branch: elpa/git-commit
commit d5ed87b1382522c3e875fc7ae40e19135e3cc0aa
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-margin-default-time-format: New un-advertised variable
Closes #4605.
---
lisp/magit-margin.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-margin.el b/lisp/magit-margin.el
index 4cd8074f51..5f6375a64b 100644
--- a/lisp/magit-margin.el
+++ b/lisp/magit-margin.el
@@ -77,6 +77,9 @@ does not carry to other options."
(setcar magit-buffer-margin (not (magit-buffer-margin-p)))
(magit-set-buffer-margin))
+(defvar magit-margin-default-time-format nil
+ "See https://github.com/magit/magit/pull/4605.")
+
(defun magit-cycle-margin-style ()
"Cycle style used for the Magit margin."
(interactive)
@@ -87,7 +90,8 @@ does not carry to other options."
(pcase (cadr magit-buffer-margin)
(`age 'age-abbreviated)
(`age-abbreviated
- (let ((default (cadr (symbol-value (magit-margin-option)))))
+ (let ((default (or magit-margin-default-time-format
+ (cadr (symbol-value (magit-margin-option))))))
(if (stringp default) default "%Y-%m-%d %H:%M ")))
(_ 'age)))
(magit-set-buffer-margin nil t))
- [nongnu] elpa/git-commit updated (68be0584f4 -> 9b94654921), ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 4d59e1cafd 5/9: magit-zap-caches: Also zap magit--remotes-using-recent-git, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 8394f0d4ea 8/9: Refactor git version asserts, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 477603835b 6/9: magit-debug-git-executable: Move definition to magit-git.el, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 69be963b62 2/9: magit-startup-asserts: Remove special case for Travis, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 489f84a3d6 7/9: magit--safe-git-version: New function, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 6c4ff54a08 3/9: magit-startup-asserts: Don't check Git version when building Magit, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 9b94654921 9/9: Remove redundant version/feature caches, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit 18728adc76 4/9: magit-zap-caches: With a prefix discard complete caches, ELPA Syncer, 2022/02/22
- [nongnu] elpa/git-commit d5ed87b138 1/9: magit-margin-default-time-format: New un-advertised variable,
ELPA Syncer <=