branch: elpa/git-commit commit 451cbe5c24f2af7ed505f1422af6ad4e8f05205b Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Inhibit use of libgit by default The support for libgit in magit is only a stub. At this time, the only reason valid reason to use it, is when one works on extending support. There is no harm in using it even when not working to improve it, but there is a risk of breakage if we don't explicitly disable it by default. More precisely, if the emacs library `libgit' is available but the `libegit2' module has not been compiled, then the user is asked whether they want to compile it. If that fails, e.g., because no compiler is available, then they will be asked every time they restart Emacs. Closes #4880. --- lisp/magit-git.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 2ee0870ced..2fb73bcffb 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -66,8 +66,11 @@ ;;; Git implementations -(defvar magit-inhibit-libgit nil - "Whether to inhibit the use of libgit.") +(defvar magit-inhibit-libgit t + "Whether to inhibit the use of libgit. +Use of libgit is inhibited by default because support for libgit +in magit is only a stub for now. There is no benefit in using +it.") (defvar magit--libgit-available-p 'unknown "Whether libgit is available.