Commit af8c756d authored by Jonas Bernoulli's avatar Jonas Bernoulli

improve various doc-strings

parent d0128336
......@@ -529,13 +529,13 @@ The following `format'-like specs are supported:
:max-action-columns 2))
(defcustom magit-diff-arguments '("--no-ext-diff")
""
"The diff arguments used in buffers whose mode derives from `magit-diff-mode'."
:group 'magit-diff
:group 'magit-commands
:type '(repeat (string :tag "Argument")))
(defcustom magit-diff-section-arguments '("--no-ext-diff")
""
"The diff arguments used in buffers that show other things besides diffs."
:group 'magit-diff
:group 'magit-status
:type '(repeat (string :tag "Argument")))
......
......@@ -35,7 +35,8 @@
;;;###autoload
(defun magit-clone (repository directory)
"Clone the REPOSITORY to DIRECTORY."
"Clone the REPOSITORY to DIRECTORY.
Then show the status buffer for the new repository."
(interactive
(let ((url (magit-read-string "Clone repository")))
(list url (file-name-as-directory
......
......@@ -452,7 +452,11 @@ The sections are inserted by running the functions on the hook
(abbreviate-file-name topdir))))))
(defun magit-insert-remote-header ()
"Insert a header line about the remote of the current branch."
"Insert a header line about the remote of the current branch.
If no remote is configured for the current branch, then fall back
showing the \"origin\" remote, or if that does not exist the first
remote in alphabetic order."
(-when-let (remote (or (magit-get-remote)
(let ((remotes (magit-list-remotes)))
(or (car (member "origin" remotes))
......
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