[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gited 524148d 39/73: * gited.el (gited-do-sync-with-tru
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gited 524148d 39/73: * gited.el (gited-do-sync-with-trunk): Add docstring. Update file header. |
Date: |
Sun, 29 Nov 2020 00:00:35 -0500 (EST) |
branch: externals/gited
commit 524148d6a8aae45eb0a17899ba9512d2ace59cf3
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>
* gited.el (gited-do-sync-with-trunk): Add docstring. Update file header.
---
gited.el | 54 ++++++++++++++++++++++++++++++------------------------
1 file changed, 30 insertions(+), 24 deletions(-)
diff --git a/gited.el b/gited.el
index 8f0bcf4..778c9d7 100644
--- a/gited.el
+++ b/gited.el
@@ -10,9 +10,9 @@
;; Compatibility: GNU Emacs: 24.4
;; Version: 0.2.5
;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Sat Jul 01 13:24:22 JST 2017
+;; Last-Updated: Sat Jul 01 15:47:21 JST 2017
;; By: calancha
-;; Update #: 670
+;; Update #: 671
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -142,14 +142,15 @@
;; `gited-copy-branch', `gited-copy-branchname-as-kill',
;; `gited-delete-branch', `gited-diff',
;; `gited-do-delete', `gited-do-flagged-delete',
-;; `gited-do-kill-lines', `gited-edit-commit-mode',
-;; `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-do-kill-lines', `gited-do-sync-with-trunk',
+;; `gited-edit-commit-mode', `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-local-tags', `gited-mark-merged-branches',
;; `gited-mark-unmerged-branches', `gited-merge-branch',
@@ -190,20 +191,20 @@
;; `gited--mark-merged-or-unmerged-branches-spec', `gited--merged-branch-p',
;; `gited--move-to-end-of-column', `gited--output-buffer',
;; `gited--patch-or-commit-buffer', `gited--set-output-buffer-mode',
-;; `gited--stash-branch', `gited--update-padding',
-;; `gited--valid-ref-p', `gited-all-branches',
-;; `gited-async-operation-sentinel', `gited-at-header-line-p',
-;; `gited-bisecting-p', `gited-branch-exists-p',
-;; `gited-buffer-p', `gited-commit-title',
-;; `gited-current-branch', `gited-current-branches-with-marks',
-;; `gited-current-state-list', `gited-dir-under-Git-control-p',
-;; `gited-edit-commit', `gited-fontify-current-branch',
-;; `gited-fontify-marked-branch-name', `gited-format-columns-of-files',
-;; `gited-get-branchname', `gited-get-commit',
-;; `gited-get-date', `gited-get-element-in-row',
-;; `gited-get-last-commit-time', `gited-get-mark',
-;; `gited-get-marked-branches', `gited-git-command',
-;; `gited-git-command-on-region',
+;; `gited--stash-branch', `gited--sync-with-trunk-target-name',
+;; `gited--update-padding', `gited--valid-ref-p',
+;; `gited-all-branches', `gited-async-operation-sentinel',
+;; `gited-at-header-line-p', `gited-bisecting-p',
+;; `gited-branch-exists-p', `gited-buffer-p',
+;; `gited-commit-title', `gited-current-branch',
+;; `gited-current-branches-with-marks', `gited-current-state-list',
+;; `gited-dir-under-Git-control-p', `gited-edit-commit',
+;; `gited-fontify-current-branch', `gited-fontify-marked-branch-name',
+;; `gited-format-columns-of-files', `gited-get-branchname',
+;; `gited-get-commit', `gited-get-date',
+;; `gited-get-element-in-row', `gited-get-last-commit-time',
+;; `gited-get-mark', `gited-get-marked-branches',
+;; `gited-git-command', `gited-git-command-on-region',
;; `gited-hide-details-update-invisibility-spec',
;; `gited-insert-marker-char', `gited-internal-do-deletions',
;; `gited-last-commit-title', `gited-listed-branches',
@@ -2190,6 +2191,11 @@ tracking a remote repository"))
num-commits))))
(defun gited-do-sync-with-trunk (&optional dont-ask)
+ "Run `gited-sync-with-trunk' in the marked branches.
+If optional arg DONT-ASK is non-nil, then do not promt user for the
+target branch. Otherwise, prompt user.
+If no marked files use the branch at point.
+Called interactively with a prefix set DONT-ASK to non-nil."
(interactive "P")
(dolist (br (or (gited-get-marked-branches) (list (gited-get-branchname))))
(let* ((prompt
- [elpa] externals/gited 5b230bc 33/73: Use remote branches on marking commands if listing remotes, (continued)
- [elpa] externals/gited 5b230bc 33/73: Use remote branches on marking commands if listing remotes, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 6645603 37/73: * gited.el (gited-update): Preserve marks in Gited buffer., Stefan Monnier, 2020/11/29
- [elpa] externals/gited c9c6cf3 51/73: Add function to return the repository trunk branch, Stefan Monnier, 2020/11/29
- [elpa] externals/gited b09af6b 43/73: ; * gited.el: Update file header., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 86f6564 69/73: gited: Add test for the last fixed bug, Stefan Monnier, 2020/11/29
- [elpa] externals/gited e328787 32/73: * gited.el (gited-hide-details-mode): Update gited-verbose when toggle the mode., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b939044 45/73: * gited.el (gited-tag-add): Fix docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited ee3d39f 71/73: Reduce complexity of gited--fill-branch-alist, Stefan Monnier, 2020/11/29
- [elpa] externals/gited e51ad1f 47/73: gited-amend-commit: New comand, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 1f30d0f 62/73: gited-ci.el: Fix copyright stuff, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 524148d 39/73: * gited.el (gited-do-sync-with-trunk): Add docstring. Update file header.,
Stefan Monnier <=
- [elpa] externals/gited 8df7a8d 67/73: gited--output-buffer: Set default-directory to `gited-toplevel-dir', Stefan Monnier, 2020/11/29
- [elpa] externals/gited d5de2d4 42/73: * gited.el (gited-do-sync-with-trunk): Go to branch before `gited-sync-with-trunk'., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 8e7f2ad 50/73: Use match-string-no-properties, Stefan Monnier, 2020/11/29
- [elpa] externals/gited e2b12c9 36/73: * gited.el (gited-mark-remembered): Insert the marker and fontify the row., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 5c62d3f 68/73: gited: Set default-directory to gited-toplevel-dir in output buffers, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 0306980 73/73: * .gitignore: New file, Stefan Monnier, 2020/11/29