[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got 6eda2f1 035/145: vc-got-log-incoming
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got 6eda2f1 035/145: vc-got-log-incoming |
Date: |
Thu, 9 Sep 2021 15:58:28 -0400 (EDT) |
branch: externals/vc-got
commit 6eda2f1f013325ef2ba8a49de9b6ed701c166fe9
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
vc-got-log-incoming
---
vc-got.el | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/vc-got.el b/vc-got.el
index 7182391..2eb93c5 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -78,9 +78,12 @@
;; HISTORY FUNCTIONS
;; * print-log DONE
;; * log-outgoing DONE
-;; * log-incoming NOT IMPLEMENTED
+;; * log-incoming DONE
;; - log-search DONE
;; - log-view-mode NOT IMPLEMENTED
+;; - show-log-entry NOT IMPLEMENTED
+;; - comment-history NOT IMPLEMENTED
+;; - update-changelog NOT IMPLEMENTED
;; TODO: use the idiom
;; (let (process-file-side-effects) ...)
@@ -489,6 +492,15 @@ LIMIT limits the number of commits, optionally starting at
START-REVISION."
(with-current-buffer buffer
(vc-got--log nil nil nil rl))))
+(defun vc-got-incoming (buffer remote-location)
+ "Fill BUFFER with the diff between the REMOTE-LOCATION and the local
worktree branch."
+ (let ((rl (if (or (not remote-location) (string-empty-p remote-location))
+ (concat "origin/" (vc-got--current-branch))
+ remote-location))
+ (inhibit-read-only t))
+ (with-current-buffer buffer
+ (vc-got--log nil nil (vc-got--current-branch) rl))))
+
;; XXX: vc.el specify only pattern, but in reality this takes a buffer
;; and a pattern.
(defun vc-got-log-search (buffer pattern)
- [elpa] externals/vc-got 30dcede 015/145: remove ``Summary'' from the commit, (continued)
- [elpa] externals/vc-got 30dcede 015/145: remove ``Summary'' from the commit, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 694534b 017/145: implemented vc-got-mode-line-string, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 345290b 020/145: improve vc-got–diff and vc-got-diff, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 52a1813 021/145: add-to-list is better at strings than cl-pushnew, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f2e1ddb 028/145: document vc-got-stage-mode, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 686eac9 026/145: implemented vc-got-push, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a8466f0 022/145: implement dir-extra-headers, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 9ad1eb5 025/145: implemented vc-got-log-outgoing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a5e9be3 029/145: fix table, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got cdd3e16 030/145: use vc-find-root instead of vc-got-root, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6eda2f1 035/145: vc-got-log-incoming,
ELPA Syncer <=
- [elpa] externals/vc-got 986bd9a 038/145: fix diff on multiple files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0e25fbe 039/145: expand the vc function status list, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got e79563b 044/145: make got program customizable, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 45b0e76 023/145: typo in vc-got-pull, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 5dec261 033/145: kill got stage/unstage buffer after utilisation and introduce unstage-all, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 12ca62f 034/145: implement vc-got-diff-switches, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 406d7b4 037/145: switch to GPLv3, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got b34e96f 036/145: Emacs upstream has fixed the documentation, comment not needed, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got df20ca2 040/145: add vc-got--program-version command to return version number, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got d54ceb8 041/145: make got program be customizable, ELPA Syncer, 2021/09/09