[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gited eeadd65 26/73: Add missing docstrings for several
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gited eeadd65 26/73: Add missing docstrings for several commands |
Date: |
Sun, 29 Nov 2020 00:00:32 -0500 (EST) |
branch: externals/gited
commit eeadd65f3ebcbc890e78221485cc237258dff5e3
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>
Add missing docstrings for several commands
Update file header. Bump version to 0.2.1
* gited.el (gited-finish-commit-edit, gited-revert-commit)
(gited-fetch-remote-tags): Add docstring.
(gited-move-to-branchname)
(gited-move-to-end-of-branchname, gited-move-to-author)
(gited-move-to-end-of-author, gited-move-to-date)
(gited-move-to-end-of-date): Same. NOOP when there is no
a table entry at point.
---
gited.el | 81 +++++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 50 insertions(+), 31 deletions(-)
diff --git a/gited.el b/gited.el
index f75e646..0b4975b 100644
--- a/gited.el
+++ b/gited.el
@@ -8,11 +8,11 @@
;; Created: Wed Oct 26 01:28:54 JST 2016
;; Compatibility: GNU Emacs: 24.4
-;; Version: 0.2.0
+;; Version: 0.2.1
;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Fri Jun 09 22:24:01 JST 2017
+;; Last-Updated: Fri Jun 09 22:47:58 JST 2017
;; By: calancha
-;; Update #: 659
+;; Update #: 660
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -114,29 +114,31 @@
;; `gited-delete-branch', `gited-diff',
;; `gited-do-delete', `gited-do-flagged-delete',
;; `gited-do-kill-lines', `gited-edit-commit-mode',
-;; `gited-extract-patches', `gited-finish-commit-edit',
-;; `gited-flag-branch-deletion', `gited-goto-branch',
-;; `gited-goto-first-branch', `gited-goto-last-branch',
-;; `gited-kill-line', `gited-list-branches',
-;; `gited-log', `gited-log-last-n-commits',
-;; `gited-mark', `gited-mark-branches-by-date',
-;; `gited-mark-branches-containing-commit',
+;; `gited-extract-patches', `gited-fetch-remote-tags',
+;; `gited-finish-commit-edit', `gited-flag-branch-deletion',
+;; `gited-goto-branch', `gited-goto-first-branch',
+;; `gited-goto-last-branch', `gited-kill-line',
+;; `gited-list-branches', `gited-log',
+;; `gited-log-last-n-commits', `gited-mark',
+;; `gited-mark-branches-by-date', `gited-mark-branches-containing-commit',
;; `gited-mark-branches-containing-regexp', `gited-mark-branches-regexp',
-;; `gited-mark-merged-branches', `gited-mark-unmerged-branches',
-;; `gited-merge-branch', `gited-move-to-author',
-;; `gited-move-to-branchname', `gited-move-to-date',
-;; `gited-move-to-end-of-author', `gited-move-to-end-of-branchname',
-;; `gited-move-to-end-of-date', `gited-next-line',
-;; `gited-next-marked-branch', `gited-number-marked',
-;; `gited-origin', `gited-prev-line',
-;; `gited-prev-marked-branch', `gited-pull',
-;; `gited-push', `gited-rename-branch',
+;; `gited-mark-local-tags', `gited-mark-merged-branches',
+;; `gited-mark-unmerged-branches', `gited-merge-branch',
+;; `gited-move-to-author', `gited-move-to-branchname',
+;; `gited-move-to-date', `gited-move-to-end-of-author',
+;; `gited-move-to-end-of-branchname', `gited-move-to-end-of-date',
+;; `gited-next-line', `gited-next-marked-branch',
+;; `gited-number-marked', `gited-origin',
+;; `gited-prev-line', `gited-prev-marked-branch',
+;; `gited-pull', `gited-push',
+;; `gited-remote-tag-delete', `gited-rename-branch',
;; `gited-reset-branch', `gited-revert-commit',
-;; `gited-set-branch-upstream', `gited-show-commit',
+;; `gited-set-object-upstream', `gited-show-commit',
;; `gited-stash', `gited-stash-apply',
;; `gited-stash-branch', `gited-stash-drop',
;; `gited-stash-pop', `gited-status',
;; `gited-summary', `gited-sync-with-trunk',
+;; `gited-tag-add', `gited-tag-delete',
;; `gited-toggle-marks', `gited-unmark',
;; `gited-unmark-all-branches', `gited-unmark-all-marks',
;; `gited-unmark-backward', `gited-update',
@@ -153,7 +155,7 @@
;; `gited--get-unmerged-branches', `gited--goto-column',
;; `gited--goto-first-branch', `gited--handle-new-or-delete-files',
;; `gited--list-files', `gited--list-format-init',
-;; `gited--mark-branches-in-region',
+;; `gited--list-refs-format', `gited--mark-branches-in-region',
;; `gited--mark-merged-or-unmerged-branches',
;; `gited--mark-merged-or-unmerged-branches-spec', `gited--merged-branch-p',
;; `gited--move-to-end-of-column', `gited--output-buffer',
@@ -182,9 +184,9 @@
;; `gited-number-of-commits', `gited-prev-branch',
;; `gited-print-entry', `gited-remember-marks',
;; `gited-remote-prune', `gited-remote-repository-p',
-;; `gited-repeat-over-lines', `gited-stashes',
-;; `gited-tabulated-list-entries', `gited-trunk-branches',
-;; `gited-untracked-files'.
+;; `gited-remote-tags', `gited-repeat-over-lines',
+;; `gited-stashes', `gited-tabulated-list-entries',
+;; `gited-trunk-branches', `gited-untracked-files'.
;;
;; Faces defined here:
;;
@@ -1630,6 +1632,7 @@ A prefix argument prompts for AUTHOR."
map))
(defun gited-finish-commit-edit ()
+ "Finish the revert and commit it."
(interactive)
(unless (eq major-mode 'gited-edit-commit-mode)
(error
@@ -1672,7 +1675,9 @@ A prefix argument prompts for AUTHOR."
(insert string)
(recenter '(4)))))
+;; FIXME: Probably this should be (&rest commits) not just one commit.
(defun gited-revert-commit (commit)
+ "Revert COMMIT."
(interactive
(let ((last-commit
(with-temp-buffer
@@ -2343,6 +2348,10 @@ After this command, you can fetch the remote tag again
with:
(error "Cannot delete tag. Please check"))))
(defun gited-fetch-remote-tags ()
+ "Call `gited-remote-prune' and update the Gited buffer.
+If the Gited buffer is listing tags and you have deleted a local
+tag TAG hat also exists remotely, then after this command a
+local TAG is recreated."
(interactive)
(gited-remote-prune)
(gited-update))
@@ -3153,31 +3162,41 @@ this subdir."
(gited-unmark-all-branches ?\r))
(defun gited-move-to-branchname ()
+ "Move point to the beginning of the Branches column in current row."
(interactive)
- (when gited-branch-alist
+ (when (tabulated-list-get-id)
(gited--move-to-column (1+ gited-branch-idx))))
;; Return point.
(defun gited-move-to-end-of-branchname ()
+ "Move point to the end of the Branches column in current row."
(interactive)
- (gited--move-to-end-of-column (1+ gited-branch-idx)))
+ (when (tabulated-list-get-id)
+ (gited--move-to-end-of-column (1+ gited-branch-idx))))
(defun gited-move-to-author ()
+ "Move point to the beginning of the Authors column in current row."
(interactive)
- (gited--move-to-column (1+ gited-author-idx)))
+ (when (tabulated-list-get-id)
+ (gited--move-to-column (1+ gited-author-idx))))
(defun gited-move-to-end-of-author ()
+ "Move point to the end of the Authors column in current row."
(interactive)
- (gited--move-to-end-of-column (1+ gited-author-idx)))
+ (when (tabulated-list-get-id)
+ (gited--move-to-end-of-column (1+ gited-author-idx))))
(defun gited-move-to-date ()
+ "Move point to the beginning of the Date column in current row."
(interactive)
- (gited--move-to-column (1+ gited-date-idx)))
+ (when (tabulated-list-get-id)
+ (gited--move-to-column (1+ gited-date-idx))))
(defun gited-move-to-end-of-date ()
+ "Move point to the end of the Date column in current row."
(interactive)
- (gited--move-to-end-of-column (1+ gited-date-idx)))
-
+ (when (tabulated-list-get-id)
+ (gited--move-to-end-of-column (1+ gited-date-idx))))
(defun gited-unmark (arg &optional interactive)
"Unmark the branch at point in the Gited buffer.
- [elpa] externals/gited 37fe689 25/73: * gited.el (gited--fill-branch-alist): Silence harmless warning., (continued)
- [elpa] externals/gited 37fe689 25/73: * gited.el (gited--fill-branch-alist): Silence harmless warning., Stefan Monnier, 2020/11/29
- [elpa] externals/gited d26d8c4 11/73: Simplify code using gited-branch-exists-p, Stefan Monnier, 2020/11/29
- [elpa] externals/gited d928e5f 29/73: * screenshots/gited-tags-screenshot.png: Update screenshot., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 790c20c 09/73: gited-mark-branches-by-date: Use less verbose default, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 046dffd 20/73: Update documentation, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 5f57f01 21/73: * gited.el (gited-mode-map): Use prefix '* s' for all stash commands., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 8db1633 04/73: gited-update: Don't overwrite `tabulated-list-sort-key', Stefan Monnier, 2020/11/29
- [elpa] externals/gited 5138dee 01/73: Add new library gited.el, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 9989d95 05/73: Fix sort of columns when gited-hide-details-mode is enabled, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 861281e 06/73: * gited.el (gited-mark-branches-regexp): Fix docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited eeadd65 26/73: Add missing docstrings for several commands,
Stefan Monnier <=
- [elpa] externals/gited 239ac36 31/73: * gited.el: Bump version to 0.2.3., Stefan Monnier, 2020/11/29
- [elpa] externals/gited fd28d69 48/73: * gited-tests.el (gited-test1): Use gited--last-commit-title., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 09c79b9 64/73: Separate versions from file names with --, Stefan Monnier, 2020/11/29
- [elpa] externals/gited ed83468 59/73: * packages/gited/gited.el: Bump version to v5.0.1, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 8502d7c 53/73: Handle multi remote repositories, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 55fc368 54/73: Fix gited-push bug from previous commit, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 8241ee5 41/73: gited-checkout-branch: Set right faces for marked branches, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 0a303a1 70/73: Make code more compact by using pcase-dolist, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 40e57eb 60/73: * gited/gited.el: Don't require `gited-ci`, which isn't found., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b5fdc7e 61/73: Add missing file gited-ci.el, Stefan Monnier, 2020/11/29