I want to add a custom log option via (in init.el after some require magit package introduction):
(defun magit-log-my-stuff (&optional args files)
(interactive (magit-log-arguments))
"Show log for all my relevant stuff."
(magit-log-setup-buffer
(list "--branches" "--remotes={myremote/foo/[ao]*,otherremote/bar/x*}")
args files))
(transient-append-suffix 'magit-log "l"
'("m" "mystuff" magit-log-my-stuff))
Everything works as expected if I add a single glob pattern like "--remotes=myremote/foo/[ao]*", but not with the "or" {...,...} glob pattern. On the command line, I get the expected if I use
git log --branches --remotes={myremote/foo/[ao]*,otherremote/bar/x*}
So it seems that somehow emacs/magit provides slightly different arguments to git log. How can I provide such a more complex glob pattern in magit?