From 81dff9de5746a30449a4bcd1d63f4de2495c9e64 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 5 May 2019 23:10:28 -0400 Subject: Update for Magit's rework of buffer arguments (62d06e6) --- init.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index fd6cbd5..623b8d1 100644 --- a/init.el +++ b/init.el @@ -929,17 +929,11 @@ (setq magit-delete-by-moving-to-trash nil magit-update-other-window-delay 0.1 magit-revision-insert-related-refs nil - magit-use-sticky-arguments 'current magit-log-show-refname-after-summary t magit-log-section-arguments nil) (setq magit-list-refs-sortby "-creatordate") - (setq magit-log-arguments - (cons "-n75" (cl-remove-if - (lambda (x) (string-prefix-p "-n" x)) - magit-log-arguments))) - (setq magit-uniquify-buffer-names nil) (setq magit-no-confirm '(stage-all-changes unstage-all-changes reverse)) @@ -955,8 +949,6 @@ (setq magit-branch-direct-configure nil) - (setq magit-show-refs-arguments '("--sort=-committerdate")) - (remove-hook 'magit-refs-sections-hook #'magit-insert-tags) (add-hook 'magit-log-mode-hook #'bug-reference-mode) @@ -1009,6 +1001,14 @@ (transient-suffix-put 'magit-branch "m" :key "r") (transient-suffix-put 'magit-branch "s" :key "v") + (setf (alist-get 'magit-show-refs transient-values) + (list "--sort=-committerdate")) + + (put 'magit-log-mode 'magit-log-default-arguments + '("--graph" "-n75" "--decorate")) + (put 'magit-log-select-mode 'magit-log-default-arguments + '("--graph" "-n75" "--decorate")) + (advice-add 'magit-generate-buffer-name-default-function :around -- cgit v1.2.3