Commit a6dcd97a authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-remote.el: nest remote sections

parent 0ff70e37
......@@ -83,7 +83,8 @@ Then show the status buffer for the new repository."
(with-current-buffer (process-get process 'command-buf)
(magit-status-internal directory))))))
;;; Setup
;;; Remote
;;;; Options
(defcustom magit-remote-add-set-remote.pushDefault 'ask-if-unset
"Whether to set the value of `remote.pushDefault' after adding a remote.
......@@ -100,6 +101,8 @@ variable isn't already set."
(string :tag "set if named")
(const :tag "don't set")))
;;;; Popup
;;;###autoload (autoload 'magit-remote-popup "magit-remote" nil t)
(magit-define-popup magit-remote-popup
"Popup console for remote commands."
......@@ -112,6 +115,8 @@ variable isn't already set."
(?k "Remove" magit-remote-remove)
(?u "Set url" magit-remote-set-url)))
;;;; Commands
(defun magit-read-url (prompt &optional initial-input)
(let ((url (magit-read-string-ns prompt initial-input)))
(if (string-prefix-p "~" url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment