[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 1df9714eb6 49/67: Accept optional long agitate-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 1df9714eb6 49/67: Accept optional long agitate--vc-git-commit-prompt |
Date: |
Wed, 28 Sep 2022 16:57:29 -0400 (EDT) |
branch: externals/agitate
commit 1df9714eb6bf23c04e4ced1ac547c349c7d64694
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Accept optional long agitate--vc-git-commit-prompt
---
agitate.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/agitate.el b/agitate.el
index d0cd4edc15..0a6d48e0be 100644
--- a/agitate.el
+++ b/agitate.el
@@ -236,18 +236,19 @@ to the text at point."
(when (string-match "\\b\\([0-9a-z]+\\) " string)
(match-string 1 string)))
-(defun agitate--vc-git-commit-prompt (&optional file)
+(defun agitate--vc-git-commit-prompt (&optional file long)
"Prompt for Git commit and return it as a string.
With optional FILE, limit the commits to those pertinent to it."
- (let ((default-directory (vc-root-dir)))
+ (let ((default-directory (vc-root-dir))
+ (format (if long "--pretty=oneline" "--oneline")))
(if file
(completing-read
(format "Select revision of `%s': " file)
- (process-lines vc-git-program "log" "--oneline" file)
+ (process-lines vc-git-program "log" format file)
nil t)
(completing-read
"Select revision: "
- (process-lines vc-git-program "log" "--oneline" "--")
+ (process-lines vc-git-program "log" format "--")
nil t))))
(defvar agitate-vc-git-show-buffer "*agitate-vc-git-show*"
- [elpa] externals/agitate 95e6f9186e 09/67: Update one-line description, (continued)
- [elpa] externals/agitate 95e6f9186e 09/67: Update one-line description, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 69e8f87214 04/67: Add agitate-vc-git-push, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 5a1b31fe09 06/67: Add agitate-log-view-kill-revision command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 2250f3d039 33/67: Expand the README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 2c9f6bb3be 20/67: Rename to agitate-vc-git-push-prompt-for-remote, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 418d24bd13 60/67: Tweak comments about gitmoji, conventional commits, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d808406253 48/67: Edit vc-git-show (PROOF OF CONCEPT), ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4192d8d892 51/67: Clarify doc of helper function, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 9146d7cd54 31/67: Rename to agitate-diff-enable-outline-minor-mode, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 27cdb6fd95 57/67: Improve agitate-vc-git-prompt-format-patch-single, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1df9714eb6 49/67: Accept optional long agitate--vc-git-commit-prompt,
ELPA Syncer <=
- [elpa] externals/agitate ed6c5cfb71 32/67: Capitalise Unicode in doc string, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate aa04a25eb1 58/67: Rename to agitate-vc-git-format-patch-single, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a9a8339126 46/67: Add PROOF OF CONCEPT vc-git-find-revision, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 412834ce07 66/67: Fix file no dir in agitate--log-edit-extract-file, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a32ed823b6 24/67: Add TODO about conventional commits, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate fa0a9e5260 42/67: Add echo to agitate-vc-git-kill-commit-message, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 063d94c983 35/67: Add generic README in markdown, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate f9dd3b3f91 41/67: Add agitate-vc-git-kill-commit-message command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate ca4b65bf85 36/67: Add gitignore, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 0b80819820 62/67: Refine regexp for git hash extraction, ELPA Syncer, 2022/09/28