[elpa] scratch/gited 08ec436 3/7: Add commands to add/delete tags
branch: scratch/gited commit 08ec43606850d678e089bd7105d8675e8aaca075 Author: Tino Calancha Commit: Tino Calancha Add commands to add/delete tags * gited.el (gited-set-object-upstream): Rename from gited-set-branch-upstream. Handle tags as well. (gited-internal-do-deletions): Handle tags. (gited-remote-tags): New defun. (gited-tag-add, gited-tag-delete, gited-remote-tag-delete) (gited-fetch-remote-tags, gited-mark-local-tags): New commands. Bind them to '* t a', '* t d', '* t D', '* t f' and '% l', respectively. --- packages/gited/gited.el | 140 ++-- 1 file changed, 125 insertions(+), 15 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 0da0e81..af65e35 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 21:02:22 JST 2017 +;; Last-Updated: Fri Jun 09 21:06:05 JST 2017 ;; By: calancha -;; Update #: 654 +;; Update #: 656 ;; ;; @@ -1145,7 +1145,7 @@ g = merged, k = keep): " (error "Cannot reset --%s '%s' to '%s'" mode branch commit) (defun gited-remote-prune () - "Remove references to deleted remote branches." + "Remove references to deleted remote branches/tags." (setq gited--last-remote-prune (current-time)) (message "Prunning remote branches ...") (gited-git-command '("fetch" "--all" "--prune"))) @@ -1279,7 +1279,7 @@ argument or confirmation)." "Delete" (replace-regexp-in-string "files" - "branches" + (if (equal gited-ref-kind "tags") "tags" "branches") (dired-mark-prompt arg branches) (save-excursion (let ((progress-reporter @@ -1293,7 +1293,9 @@ argument or confirmation)." (condition-case err (let ((fn (caar l)) (gited-expert t)) ;; Don't ask confirmation again. - (gited-delete-branch fn force) + (if (equal gited-ref-kind "tags") + (gited-tag-delete fn) +(gited-delete-branch fn force)) ;; if we get here, removing worked (cl-incf succ) (progress-reporter-update progress-reporter succ)) @@ -1878,22 +1880,29 @@ ref is not ancestor of the local ref." (erase-buffer)) (gited-async-operation cmd 'remote-op-p -(defun gited-set-branch-upstream (branch) - "Push a local BRANCH to origin." +(defun gited-set-object-upstream (object) + "Push OBJECT to origin. +OBJECT is a local branch or tag." (interactive (list (gited-get-branchname))) - (unless (string= gited-ref-kind "local") -(user-error "Gited should be listing local branches")) + (when (string= gited-ref-kind "remote") +(user-error "Gited should be listing local branches or tags")) (if (not (or gited-expert - (y-or-n-p (format "Push '%s' branch up stream? " - branch + (y-or-n-p (format "Push '%s' %s upstream? " + (if (equal gited-ref-kind "local") "branch" "tag") + object (message "OK, push canceled") (let ((buf (gited--output-buffer)) - (cmd (format "%s push --set-upstream origin %s" - vc-git-program branch)) + (cmd (format "%s push %sorigin %s%s" + vc-git-program + (if (equal gited-ref-kind "local") "--set-upstream " "") + (if (equal gited-ref-kind "local") "" "tag ") + object)) (inhibit-read-only t)) (setq gited-output-buffer buf -gited-op-string (format "Set branch '%s' upstream" branch)) +gited-op-string (format "Set %s '%s' upstream" +(if (equal gited-ref-kind "local") "branch" "tag ") +object)) (with-current-buffer buf (setq buffer-read-only nil) ; Editable, they can ask username. (erase-buffer)) @@ -2295,7 +2304,102 @@ prefix arguments includes the ignored files as well." (defalias 'gited-delete-all-stashes 'gited-branch-clear) + +;;; Commands handling tags. +(defun gited-tag-add (name commit &optional arg) + "Create a new tag with name NAME at COMMIT with message MSG. +Called with a prefix argument C-u, annotate the tag. +Called with a numeric prefix ARG > 1, make a GPG-signed tag using the default + e-mail address's key. +Called with a numeric prefix ARG < 1, prompt for the key and make a GPG-signed tag." + (interactive
[elpa] scratch/gited a4a2e70 7/7: Add missing docstrings for several commands
branch: scratch/gited commit a4a2e70d8905d24552345aa9f69babcb29283db7 Author: Tino Calancha Commit: Tino Calancha 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. --- packages/gited/gited.el | 81 ++--- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index f75e646..0b4975b 100644 --- a/packages/gited/gited.el +++ b/packages/gited/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-e
[elpa] scratch/gited 1b16a62 2/7: * gited.el (gited-mode-map): Use prefix '* s' for all stash commands.
branch: scratch/gited commit 1b16a62f79adb7e20b8628cae0a88b669eaf797d Author: Tino Calancha Commit: Tino Calancha * gited.el (gited-mode-map): Use prefix '* s' for all stash commands. --- packages/gited/gited.el | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 0c1e927..0da0e81 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 20:41:14 JST 2017 +;; Last-Updated: Fri Jun 09 21:02:22 JST 2017 ;; By: calancha -;; Update #: 653 +;; Update #: 654 ;; ;; @@ -3162,11 +3162,11 @@ in the active region." (define-key map (kbd "% M") 'gited-mark-unmerged-branches) (define-key map (kbd "d") 'gited-flag-branch-deletion) ;; Git stash -(define-key map (kbd "* s") 'gited-stash) -(define-key map (kbd "* a") 'gited-stash-apply) -(define-key map (kbd "* A") 'gited-stash-pop) -(define-key map (kbd "* b") 'gited-stash-branch) -(define-key map (kbd "* d") 'gited-stash-drop) +(define-key map (kbd "* s s") 'gited-stash) +(define-key map (kbd "* s a") 'gited-stash-apply) +(define-key map (kbd "* s A") 'gited-stash-pop) +(define-key map (kbd "* s b") 'gited-stash-branch) +(define-key map (kbd "* s d") 'gited-stash-drop) ;; marked operations (define-key map (kbd "* N") 'gited-number-marked) (define-key map (kbd "R") 'gited-rename-branch)
[elpa] scratch/gited 34b3e7e 6/7: * gited.el (gited--fill-branch-alist): Silence harmless warning.
branch: scratch/gited commit 34b3e7e53122f373db1294deed60beee94d4b776 Author: Tino Calancha Commit: Tino Calancha * gited.el (gited--fill-branch-alist): Silence harmless warning. --- packages/gited/gited.el | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index cd56fd6..f75e646 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 22:11:39 JST 2017 +;; Last-Updated: Fri Jun 09 22:24:01 JST 2017 ;; By: calancha -;; Update #: 658 +;; Update #: 659 ;; ;; @@ -2572,8 +2572,8 @@ reach the beginning of the buffer." (format-time-string gited-date-format (apply #'encode-time - (decode-time -(seconds-to-time time-secs) zone)) + (with-no-warnings + (decode-time (seconds-to-time time-secs) zone))) ;; FIXME: Would work for a zone as: +0530 ? (and zone (* 36 zone (t ;; HACK: Workaround for Emacs versions < 25 that don't accept
[elpa] scratch/gited updated (3a19de5 -> a4a2e70)
calancha pushed a change to branch scratch/gited. from 3a19de5 * gited.el (gited-set-branch-upstream): Output buffer must be editable. new 4ef8628 Update documentation new 1b16a62 * gited.el (gited-mode-map): Use prefix '* s' for all stash commands. new 08ec436 Add commands to add/delete tags new df26e38 * gited.el (gited-tag-add): Fix docstring. new 6721b0e * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'. new 34b3e7e * gited.el (gited--fill-branch-alist): Silence harmless warning. new a4a2e70 Add missing docstrings for several commands Summary of changes: packages/gited/README.md | 44 + packages/gited/gited.el | 243 +-- 2 files changed, 235 insertions(+), 52 deletions(-)
[elpa] scratch/gited 6721b0e 5/7: * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'.
branch: scratch/gited commit 6721b0efe88adf6a6e7d73043046499e58f09847 Author: Tino Calancha Commit: Tino Calancha * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'. --- packages/gited/gited.el | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 621aad0..cd56fd6 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 21:14:48 JST 2017 +;; Last-Updated: Fri Jun 09 22:11:39 JST 2017 ;; By: calancha -;; Update #: 657 +;; Update #: 658 ;; ;; @@ -3289,7 +3289,15 @@ in the active region." ;;;###autoload (defun gited-list-branches (&optional pattern other-window update) - "List all branches with the time of its last commit." + "List all branches or tags for the current repository. +Optional arg PATTERN if non-nil, then must be \"local\", \"remote\", + or \"tags\". That lists local branches, remote branches and tags, + respectively. When PATTERN is nil, then list the local branches. +Optional arg OTHER-WINDOW means to display the Gited buffer in another window. +Optional arg UPDATE if non-nil, then force to update the gited buffer. + Otherwise, just switch to the Gited buffer if already exists. +When called interactively prompt for PATTERN. +When called interactively with a prefix set OTHER-WINDOW non-nil." (interactive (progn (unless (gited-dir-under-Git-control-p) @@ -3348,6 +3356,8 @@ in the active region." (or gited-verbose (gited-hide-details-mode 1)) (setq gited--hide-details-set t) +(defalias 'gited-list 'gited-list-branches) + (defun gited-print-entry (id cols) "Insert a Gited entry at point. ID is a Lisp object identifying the entry to print, and COLS is a vector
[elpa] scratch/gited df26e38 4/7: * gited.el (gited-tag-add): Fix docstring.
branch: scratch/gited commit df26e382705c2f6c1479015479a1eb4cecfbd260 Author: Tino Calancha Commit: Tino Calancha * gited.el (gited-tag-add): Fix docstring. --- packages/gited/gited.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index af65e35..621aad0 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 21:06:05 JST 2017 +;; Last-Updated: Fri Jun 09 21:14:48 JST 2017 ;; By: calancha -;; Update #: 656 +;; Update #: 657 ;; ;; @@ -2307,7 +2307,7 @@ prefix arguments includes the ignored files as well." ;;; Commands handling tags. (defun gited-tag-add (name commit &optional arg) - "Create a new tag with name NAME at COMMIT with message MSG. + "Create a new tag with name NAME at COMMIT. Called with a prefix argument C-u, annotate the tag. Called with a numeric prefix ARG > 1, make a GPG-signed tag using the default e-mail address's key.
[elpa] scratch/gited 4ef8628 1/7: Update documentation
branch: scratch/gited commit 4ef8628f62c518afea0526a8eafdce29b7986270 Author: Tino Calancha Commit: Tino Calancha Update documentation * gited.el: Add Bugs/TODO section and URL header. Update comentary section. * README.md: Add simple example. --- packages/gited/README.md | 44 packages/gited/gited.el | 4 ++-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/packages/gited/README.md b/packages/gited/README.md index 5a72246..8909f6c 100644 --- a/packages/gited/README.md +++ b/packages/gited/README.md @@ -22,3 +22,47 @@ Gited; that's because most of the Gited commands with a Dired equivalent share same keybindings. For instance *gited-rename-branch* is bound to 'R' as *dired-do-rename*. Similarly, *gited-mark* is bound to 'm' as *dired-mark*. + +## How to push to the remote repo. your local changes + +Suppose you want to update a file *foo* (*). + +From the Gited buffer: + +``` +c master RET ; Checkout master branch (**). +*< ; Synchronize with remote repository. +``` + +Now, update *foo* with your changes and save it. + +From the Gited buffer: + +``` +A ; Stage your changes. +``` + +``` +C-c c "Updated foo" RET ; Commit them. +``` + +``` +*> ; Public your changes into the remote repository. +``` + +--- +(*) We have restricted to 1 file for simplicity. The recipe works +for N>=1 files. + +(**) For changes that require several commits you might prefer to + work in a separated branch 'feature'. In that case you'd + merge the master branch with 'feature' before ```*>```). + + +### Bugs/TODO + +* Currently, *origin* is assumed as the remote repository: + Remove some hardcode *origin* around, and extend it + to handle multiple remotes. + +* Pull requests are not implemented. diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 85540c4..0c1e927 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -10,9 +10,9 @@ ;; Compatibility: GNU Emacs: 24.4 ;; Version: 0.2.0 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Thu Jun 08 22:31:32 JST 2017 +;; Last-Updated: Fri Jun 09 20:41:14 JST 2017 ;; By: calancha -;; Update #: 652 +;; Update #: 653 ;; ;;
[elpa] master updated (e885224 -> 8eab057)
calancha pushed a change to branch master. from e885224 * nlinum.el: Bump version to 1.7 adds dfe4b47 Add new library gited.el adds db16eab Default to beginning of epoch when no commit time info adds 843b867 gited-list-branches: Move to current branch only when it's shown adds aef206c gited-update: Don't overwrite `tabulated-list-sort-key' adds 162a177 Fix sort of columns when gited-hide-details-mode is enabled adds 5d16005 * gited.el (gited-mark-branches-regexp): Fix docstring. adds c2306ca Mark branches by last commit time adds 9bd8e7c Don't ask deletion confirmation when gited-expert is non-nil adds 0e440ec gited-mark-branches-by-date: Use less verbose default adds d7eb144 gited-mark-branches-by-date: Provide defaults to HH:MM:SS. adds 70eccf3 Simplify code using gited-branch-exists-p adds ed44126 Prefer user-error on errors with origin in the user adds 1237832 Prune deleted remote branches adds a72bdca * gited.el (gited-remote-repository-p): Don't include origin in regexp. adds 253c2c8 * gited.el (gited--fill-branch-alist): Fix typo in progress reporter. adds e0cb493 * gited.el (gited-move-to-branchname): NOOP when gited-branch-alist is nil. adds 17303e7 Use taggerdate/taggername when listing tags adds d34b05f * gited.el (gited-goto-branch): Check first that BRANCH is shown. adds 3a19de5 * gited.el (gited-set-branch-upstream): Output buffer must be editable. adds 4ef8628 Update documentation adds 1b16a62 * gited.el (gited-mode-map): Use prefix '* s' for all stash commands. adds 08ec436 Add commands to add/delete tags adds df26e38 * gited.el (gited-tag-add): Fix docstring. adds 6721b0e * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'. adds 34b3e7e * gited.el (gited--fill-branch-alist): Silence harmless warning. adds a4a2e70 Add missing docstrings for several commands new 8eab057 Merge branch 'scratch/gited' Summary of changes: packages/{dired-du => gited}/.travis.yml |1 + packages/{dired-du => gited}/LICENSE |0 packages/{dired-du => gited}/Makefile|6 +- packages/gited/README.md | 68 + packages/gited/gited-tests.el| 103 + packages/gited/gited.el | 3468 ++ 6 files changed, 3643 insertions(+), 3 deletions(-) copy packages/{dired-du => gited}/.travis.yml (86%) copy packages/{dired-du => gited}/LICENSE (100%) copy packages/{dired-du => gited}/Makefile (51%) create mode 100644 packages/gited/README.md create mode 100644 packages/gited/gited-tests.el create mode 100644 packages/gited/gited.el
[elpa] master 200a2b3: gited-list: Add autoload cookie
branch: master commit 200a2b3f14172212970865b185f42c6566f85174 Author: Tino Calancha Commit: Tino Calancha gited-list: Add autoload cookie Add simple usage example in comentary section. Bump version to 0.2.2. * gited.el (gited-list): Add autoload cookie. --- packages/gited/gited.el | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 0b4975b..f4530c8 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -8,11 +8,11 @@ ;; Created: Wed Oct 26 01:28:54 JST 2016 ;; Compatibility: GNU Emacs: 24.4 -;; Version: 0.2.1 +;; Version: 0.2.2 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Fri Jun 09 22:47:58 JST 2017 +;; Last-Updated: Sat Jun 10 11:38:55 JST 2017 ;; By: calancha -;; Update #: 660 +;; Update #: 661 ;; ;; @@ -55,6 +55,35 @@ ;; For instance `gited-rename-branch' is bound to `R' as `dired-do-rename'. ;; Similarly, `gited-mark' is bound to `m' as `dired-mark'. ;; +;; === How to push to the remote repo. your local changes === +;; +;; Suppose you want to update a file 'foo' (*). +;; From the Gited buffer: +;; 0) c master RET ; Checkout master branch (**). +;; *< ; Synchronize with remote repository. +;; +;; <<< Update 'foo' with your changes and save it. >>> +;; +;; From the Gited buffer: +;; 1) A ; Stage your changes. +;; 2) C-c c "Updated foo" RET ; Commit them. +;; 3) *> ; Public your changes into the remote repository. +;; --- +;; (*) We have restricted to 1 file for simplicity. The recipe works +;; for N>=1 files. +;; (**) For changes that require several commits you might prefer to +;; work in a separated branch 'feature'. In that case you'd +;; merge the master branch with 'feature' before 3). +;; +;; +;; Bugs/TODO +;; = +;; * Currently, 'origin' is assumed as the remote repository: +;; Remove some hardcode 'origin' around, and extend it +;; to handle multiple remotes. +;; +;; * Pull requests are not implemented. + ;; ;; Internal variables defined here: ;; @@ -3375,6 +3404,7 @@ When called interactively with a prefix set OTHER-WINDOW non-nil." (or gited-verbose (gited-hide-details-mode 1)) (setq gited--hide-details-set t) +;;;###autoload (defalias 'gited-list 'gited-list-branches) (defun gited-print-entry (id cols)