[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got 0d57aba 072/145: remove the separator when showi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got 0d57aba 072/145: remove the separator when showing a chunk to stage |
Date: |
Thu, 9 Sep 2021 15:58:36 -0400 (EDT) |
branch: externals/vc-got
commit 0d57aba161f743f963b069cca68777fcd0f9f21c
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
remove the separator when showing a chunk to stage
---
vc-got-stage.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/vc-got-stage.el b/vc-got-stage.el
index 5146237..6e85b11 100644
--- a/vc-got-stage.el
+++ b/vc-got-stage.el
@@ -80,6 +80,14 @@
:filter #'vc-got-stage--filter
:sentinel #'vc-got-stage--sentinel))))))
+(defun vc-got-stage--kill-separators ()
+ "Kill the separator lines in interactive got stage."
+ (save-excursion
+ (forward-line -2)
+ (kill-line)
+ (goto-char (point-min))
+ (kill-line)))
+
(defun vc-got-stage--filter (proc string)
"Filter for got stage process.
PROC is the process, STRING part of its output."
@@ -97,7 +105,8 @@ PROC is the process, STRING part of its output."
(zero-or-more anychar)
"?")))
(let ((msg (match-string 1)))
- (kill-line)
+ (kill-line) ; kill the question
+ (vc-got-stage--kill-separators)
(process-send-string buf (if (y-or-n-p msg) "y\n" "n\n"))
(erase-buffer)))))))))
- [elpa] externals/vc-got 74b0000 138/145: install a custom process filter for `got send', (continued)
- [elpa] externals/vc-got 74b0000 138/145: install a custom process filter for `got send', ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 3efc759 141/145: cleanup, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f457868 024/145: typo, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 06d4d37 031/145: add Makefile, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got ddc59a0 057/145: remove extra parens from vc-got-unregister and fix pcase matchall, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f8a9db5 060/145: fix vc-got-repository-url for checkout of non-bare repos, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 9e01941 078/145: improve vc-dir presentation & document vc-got-stage in README, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a7777ea 079/145: list also staged addition/removals, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 668dc8e 068/145: vc-got--status: handle stage info and filter result, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7a5ead6 061/145: vc-got-repository-url: avoid infinite loops in parsing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0d57aba 072/145: remove the separator when showing a chunk to stage,
ELPA Syncer <=
- [elpa] externals/vc-got d346ca6 084/145: ignore ignored files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 67e0b4d 096/145: add note for the future, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6ab1c7b 102/145: implement the tag creation part of vc-got-create-tag, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 887e069 090/145: make files an optional parameter, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7726b6c 097/145: silence some checkdoc warnings, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f701269 118/145: require log-edit to avoid a warning, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 241a3b1 111/145: implement unregister, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0071376 125/145: change the description in the header, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 622993f 117/145: remove vc-got-stage, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 49945a0 105/145: mark ignore and ignore-completion-table as NOT NEEDED, ELPA Syncer, 2021/09/09