[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5426b4d7bf 03/10: Allow reordering commits in 'vc-prepare-patch'
From: |
Philip Kaludercic |
Subject: |
master 5426b4d7bf 03/10: Allow reordering commits in 'vc-prepare-patch' prompt |
Date: |
Fri, 14 Oct 2022 12:30:37 -0400 (EDT) |
branch: master
commit 5426b4d7bffd368a0116d70cb95904ff3bfda0c5
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Allow reordering commits in 'vc-prepare-patch' prompt
* lisp/vc/vc.el (vc-prepare-patch): Use marked log-view commits as
initial input.
---
lisp/vc/vc.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 60481318e3..9e8dbfbe01 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -3341,8 +3341,12 @@ invidividual commits.
When invoked interactively in a Log View buffer with marked
revisions, those revisions will be used."
(interactive
- (let ((revs (or (log-view-get-marked)
- (vc-read-multiple-revisions "Revisions: ")))
+ (let ((revs (vc-read-multiple-revisions
+ "Revisions: " nil nil nil
+ (or (and-let* ((revs (log-view-get-marked)))
+ (mapconcat #'identity revs ","))
+ (and-let* ((file (buffer-file-name)))
+ (vc-working-revision file)))))
to)
(require 'message)
(while (null (setq to (completing-read-multiple
- master updated (b175a9fb7e -> 51fc195d39), Philip Kaludercic, 2022/10/14
- master db69681759 06/10: * lisp/net/rcirc.el (rcirc-generate-log-filename): Append ".log", Philip Kaludercic, 2022/10/14
- master cae0056769 08/10: Allow filtering what items are added to Ecomplete, Philip Kaludercic, 2022/10/14
- master ff0fe62002 02/10: Mention that vc-prepare-patch can interact with a log-view, Philip Kaludercic, 2022/10/14
- master 8fc5148429 09/10: * lisp/net/rcirc.el (rcirc-bridged-nick): Inherit from highlight, Philip Kaludercic, 2022/10/14
- master be1afa047f 01/10: * lisp/play/zone.el (zone): Allow selecting a program, Philip Kaludercic, 2022/10/14
- master 000cd5f9f6 05/10: ; * lisp/vc/vc.el (vc-default-prepare-patch): Add missing argument, Philip Kaludercic, 2022/10/14
- master 60f46b45d9 04/10: Prepare all inline patches at once, Philip Kaludercic, 2022/10/14
- master 6539eb0588 07/10: Prevent .dir-locals.el from being byte-compiled, Philip Kaludercic, 2022/10/14
- master 51fc195d39 10/10: Add a quick-help menu, Philip Kaludercic, 2022/10/14
- master 5426b4d7bf 03/10: Allow reordering commits in 'vc-prepare-patch' prompt,
Philip Kaludercic <=