summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-09-02 01:26:40 -0400
committerKyle Meyer <kyle@kyleam.com>2014-09-02 01:26:40 -0400
commitf4b84e60ee02979be8d7ff01c97c849ccc96b2b0 (patch)
tree33cb458569f2bbed400a7e4582a62ea22a18f2cb /lisp
parentd76f7e7ac8dd5ced9bde43a72676a1043af01afd (diff)
downloademacs.d-f4b84e60ee02979be8d7ff01c97c849ccc96b2b0.tar.gz
Change Magit function docstrings
Make the git line consistent with Magit.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index bed87c1..9ffe6a5 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -34,7 +34,7 @@ Useful for non-source code repos (e.g., Org mode note files)."
(defun km/magit-checkout-local-tracking (remote-branch)
"Create and checkout a local tracking branch for REMOTE-BRANCH.
-\(git checkout -t REMOTE-BRANCH\)"
+\n(git checkout -t REMOTE-BRANCH\)"
(interactive
(list (magit-completing-read "Remote branch"
(magit-list-remote-branch-names))))
@@ -44,14 +44,13 @@ Useful for non-source code repos (e.g., Org mode note files)."
"Create and checkout BRANCH at current branch.
This is equivalent to running `magit-branch-and-checkout' with
START-POINT set to the current branch.
-
-\(git checkout -b BRANCH)"
+\n(git checkout -b BRANCH)"
(interactive (list (magit-read-string "Branch name")))
(magit-run-git "checkout" "-b" branch))
(defun km/magit-backup-branch ()
"Create a backup branch for the current branch.
-\(git branch b/<current-branch>\)"
+\n(git branch b/<current-branch>)"
(interactive)
(-if-let (current-branch (magit-get-current-branch))
(magit-run-git "branch" (concat "b/" current-branch))