aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-margin.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2018-08-05 13:19:36 -0500
committerJonas Bernoulli <jonas@bernoul.li>2018-08-05 13:19:36 -0500
commit0bcd923ce2fa41e86e4cb6a974fc195e457b0057 (patch)
tree88d92062238e8fd92095c784b1a60a14797e17cd /lisp/magit-margin.el
parenta9c3242ee00b4f92a335ee88bc7c91b18a8c51f3 (diff)
Add a shortstat margin style for logs
The current implementation is problematic as it requires git to be called once per commit, but doing it properly would have required changes to highly problematic parts of existing code. Eventually those things will get refactored at which point this new feature will get a performance boost too. Even before that we will likely start using libgit2, which should also help a lot. Until one of these two things has happened I am not adding the toggle command to the popups. Closes #3035.
Diffstat (limited to 'lisp/magit-margin.el')
-rw-r--r--lisp/magit-margin.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/magit-margin.el b/lisp/magit-margin.el
index 4210d96..76ad344 100644
--- a/lisp/magit-margin.el
+++ b/lisp/magit-margin.el
@@ -145,7 +145,9 @@ does not carry to other options."
(with-selected-window window
(set-window-margins nil (car (window-margins))
(and (magit-buffer-margin-p)
- (nth 2 magit-buffer-margin))))))
+ (if magit-log-margin-show-shortstat
+ 16 ; kludge
+ (nth 2 magit-buffer-margin)))))))
(defun magit-make-margin-overlay (&optional string previous-line)
(if previous-line