branch: elpa/magit
commit dc6074f8daa391dc6556ae5097c9a02afd136ba3
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-log{,-refresh}: Add --graph-lane-limit
Closes #5088.
---
docs/CHANGELOG.4 | 3 +++
lisp/magit-log.el | 11 ++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/docs/CHANGELOG.4 b/docs/CHANGELOG.4
index 00ea4615ca..6eddf40e88 100644
--- a/docs/CHANGELOG.4
+++ b/docs/CHANGELOG.4
@@ -25,6 +25,9 @@
- Added ~--reject~ to ~magit-am~ menu. #5148
+- Added Git v2.55's new ~--graph-lane-limit~ to log menus. It is hidden
+ by default and not available when using an older Git. #5088
+
* v4.6.0 2026-07-01
The primary focus of this release are blob-visiting buffers. For
diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 194bce3e87..044758436a 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -473,7 +473,7 @@ commits before and half after."
;; details, so our logical grouping only follows it to an extend.
;; Arguments that are "misplaced" here:
;; 1. From "Commit Formatting".
- ;; 2. From "Common Diff Options".
+ ;; 2. From "Common Diff Options". ;FIXME
;; 3. From unnamed first group.
;; 4. Implemented by Magit.
["Commit limiting"
@@ -508,6 +508,7 @@ commits before and half after."
:if magit-log-infix-arguments--show-p
("-g" "Show graph" "--graph") ;1
("-c" "Show graph in color" "--color") ;2
+ (magit-log:--graph-lane-limit :level 5) ;TODO
("-d" "Show refnames" "--decorate") ;3
("=S" "Show signatures" "--show-signature") ;1
("-h" "Show header" "++header") ;4
@@ -602,6 +603,14 @@ commits before and half after."
:argument "-n"
:reader #'transient-read-number-N+)
+(transient-define-argument magit-log:--graph-lane-limit ()
+ :description "Show graph lanes"
+ :class 'transient-option
+ :key "=g"
+ :argument "--graph-lane-limit="
+ :reader #'transient-read-number-N+
+ :if (##magit-git-version>= "2.55"))
+
(transient-define-argument magit:--author ()
:description "Limit to author"
:class 'transient-option