More docs.
* magit.el (magit-stage-thing-at-point, magit-unstage-thing-at-point): Added correct docstrings.
This commit is contained in:
parent
75b2ce7977
commit
3c91c2d7af
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -516,6 +516,7 @@ pushed.
|
||||||
target))))
|
target))))
|
||||||
|
|
||||||
(defun magit-stage-thing-at-point ()
|
(defun magit-stage-thing-at-point ()
|
||||||
|
"Add the hunk under point to the staging area."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((info (get-char-property (point) 'magit-info)))
|
(let ((info (get-char-property (point) 'magit-info)))
|
||||||
(if info
|
(if info
|
||||||
|
@ -532,7 +533,7 @@ pushed.
|
||||||
(magit-run "git" "add" (magit-diff-info-file info)))))))
|
(magit-run "git" "add" (magit-diff-info-file info)))))))
|
||||||
|
|
||||||
(defun magit-unstage-thing-at-point ()
|
(defun magit-unstage-thing-at-point ()
|
||||||
"Add the hunk under point to the staging area."
|
"Remove the hunk under point from the staging area."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((info (get-char-property (point) 'magit-info)))
|
(let ((info (get-char-property (point) 'magit-info)))
|
||||||
(if info
|
(if info
|
||||||
|
|
Loading…
Reference in a new issue