emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 67e0b4d 096/145: add note for the future


From: ELPA Syncer
Subject: [elpa] externals/vc-got 67e0b4d 096/145: add note for the future
Date: Thu, 9 Sep 2021 15:58:41 -0400 (EDT)

branch: externals/vc-got
commit 67e0b4d2d00aff499b4d4b46d4f023e7c0c95d58
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    add note for the future
---
 vc-got.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/vc-got.el b/vc-got.el
index 6bf63b7..01f2e51 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -608,6 +608,17 @@ If REV is t, checkout from the head."
                                                   nil))))
       (vc-set-async-update buffer))))
 
+;; TODO: this can be expanded.  See whan omyksh does:
+;; function got-sync {
+;;     local _remote _info _branch
+;;     _remote=$1
+;;     _info="$(got info)"
+;;     _branch="$(echo "$_info" | awk '/branch reference:/ {l = split($NF, a, 
"/"); print a[l]}')"
+;;     [ -z $_remote ] && _remote="origin"
+;;     [ -z $_branch ] && _branch="main"
+;;     got fetch "$_remote" && got update -b "$_remote/$_branch" && \
+;;             got rebase $_branch
+;; }
 (defun vc-got-pull (prompt)
   "Execute got pull, prompting the user for the full command if PROMPT is not 
nil."
   (let ((default-directory (vc-got-root default-directory)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]