aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-core.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2016-12-22 13:26:00 +0100
committerJonas Bernoulli <jonas@bernoul.li>2016-12-22 13:26:00 +0100
commit33c5c1cad760bc5a4b9029ac0ade7f5e57790972 (patch)
tree49141afdbfef483eb595235d428035b00d417560 /lisp/magit-core.el
parenteb6d8bde3f460979fe18eb9f122734d86fd552fa (diff)
Place magit-{*}-arguments in new magit-git-arguments group
Most options named `magit-TOPIC-arguments' specify the arguments that are enabled by default in the respective `magit-TOPIC-popup'. Previously most of these options were placed in the `magit-commands' Custom group, which made that group rather noisy. A few were placed in others group, which was inconsistent and in most cases an oversight. To avoid having to specify the group for each and every popup defined in Magit and in third-party extensions that share the "magit-" prefix, teach `magit-define-popup' to use `magit-git-arguments' if GROUP isn't specified and NAME does begin with "magit-". Also place `magit-git-global-arguments' into this group. Remove it from `magit', but keep it in `magit-process' as before.
Diffstat (limited to 'lisp/magit-core.el')
-rw-r--r--lisp/magit-core.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/magit-core.el b/lisp/magit-core.el
index a074c1d..bdc03d9 100644
--- a/lisp/magit-core.el
+++ b/lisp/magit-core.el
@@ -47,6 +47,17 @@
"Options controlling behavior of certain commands."
:group 'magit)
+(defgroup magit-git-arguments nil
+ "Options controlling what arguments are passed to Git.
+
+Most of these options can be set using the respective popup,
+and it is recommended that you do that because then you can
+be certain that Magit supports the arguments that you select.
+
+An option `magit-NAME-argument' specifies the arguments that
+are enabled by default by the popup `magit-NAME-popup'."
+ :group 'magit-commands)
+
(defgroup magit-modes nil
"Modes used or provided by Magit."
:group 'magit)