Function: magit-log--maybe-drop-color-graph
magit-log--maybe-drop-color-graph is a byte-compiled function defined
in magit-log.el.
Signature
(magit-log--maybe-drop-color-graph ARGS LIMIT)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
(defun magit-log--maybe-drop-color-graph (args limit)
(cond ((not (member "--color" args))
(setq magit-log--color-graph nil))
((cond ((not (member "--graph" args)) t)
((not magit-log-color-graph-limit) nil)
((not limit)
(message "Dropping --color because -n isn't set (see %s)"
'magit-log-color-graph-limit))
((> limit magit-log-color-graph-limit)
(message "Dropping --color because -n is larger than %s"
'magit-log-color-graph-limit)))
(setq args (remove "--color" args))
(setq magit-log--color-graph nil))
((setq magit-log--color-graph t)))
args)