aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-03-31 11:34:59 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-03-31 11:34:59 +0200
commit88464b5363675d9fda27f4275d79fae96cbc6408 (patch)
tree1df9b07508077ab8ebe6a21ea7725079f60a7523
parent69cd033e825bca10285fb12f6a19f8d558666071 (diff)
magit-git-debug: Add docstring
-rw-r--r--lisp/magit-git.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 865ddb1..41587bc 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -226,7 +226,16 @@ framework ultimately determines how the collection is displayed."
;;; Git
-(defvar magit-git-debug nil)
+(defvar magit-git-debug nil
+ "Whether and how to enable additional debugging of git errors.
+
+Use `magit-toggle-git-debug' (which see) to toggle the boolean value of
+this variable. This can also manually be set to `include-success', in
+which case successful git invocations are also logged.
+
+This can also be a function, which takes one argument, the error output
+as a string. This is intended for internal use and is established using
+let-bindings around critical code (i.e., in `magit--assert-usable-git').")
(defun magit-toggle-git-debug ()
"Toggle whether additional git errors are reported.