Revert +hub flag, but disable magithub by default
Must be enabled on a per-project basis. You can change this behavior by setting +magit-hub-enabled-by-default to non-nil (before magit is loaded). Magithub has been made opt-in because: 1. Magithub is imposing, asking the user for a token, especially for users who don't use github (much or at all), but may occasionally have a project with a github remote. 2. magithub is really slow on first load for medium-to-large repos. 3. It's really easy to enable it through the magithub popup (H C e). magithub.enabled is saved into the project's .git/config file, so the setting will persist. Also added a docstring to +magit-hub-features
This commit is contained in:
parent
592205e1dd
commit
bab530ea2e
3 changed files with 31 additions and 3 deletions
|
@ -51,3 +51,19 @@ format."
|
|||
.owner.login .name)))
|
||||
(magithub-clone repo dir)))
|
||||
(magit-clone url-or-repo dir)))
|
||||
|
||||
|
||||
;;
|
||||
;; Advice
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun +magit*hub-settings--format-magithub.enabled ()
|
||||
"Change the setting to display 'false' as its default."
|
||||
(magit--format-popup-variable:choices "magithub.enabled" '("true" "false") "false"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +magit*hub-enabled-p ()
|
||||
"Disables magithub by default."
|
||||
(magithub-settings--value-or "magithub.enabled" nil
|
||||
#'magit-get-boolean))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue