[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 4efecc80a6 3/6: magit-log-move-to-revision: Def
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 4efecc80a6 3/6: magit-log-move-to-revision: Default to fixup target if any |
Date: |
Tue, 12 Dec 2023 22:10:35 -0500 (EST) |
branch: elpa/git-commit
commit 4efecc80a645841f69e3a5336c88d44badceee37
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-log-move-to-revision: Default to fixup target if any
---
lisp/magit-log.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 606bca4ad8..628c6b2d74 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -962,7 +962,15 @@ nothing else.
If invoked outside any log buffer, then display the log buffer
of the current repository first; creating it if necessary."
- (interactive (list (magit-read-branch-or-commit "In log, jump to")))
+ (interactive
+ (list (or (magit-completing-read
+ "In log, jump to"
+ (magit-list-refnames nil t)
+ nil nil nil 'magit-revision-history
+ (or (and-let* ((rev (magit-commit-at-point)))
+ (magit-rev-fixup-target rev))
+ (magit-get-current-branch)))
+ (user-error "Nothing selected"))))
(with-current-buffer
(cond ((derived-mode-p 'magit-log-mode)
(current-buffer))
- [nongnu] elpa/git-commit updated (041f034c6d -> b187753717), ELPA Syncer, 2023/12/12
- [nongnu] elpa/git-commit 4efecc80a6 3/6: magit-log-move-to-revision: Default to fixup target if any,
ELPA Syncer <=
- [nongnu] elpa/git-commit 0cc9cd067e 4/6: magit-cherry-refresh-buffer: Don't inhibit use of markers, ELPA Syncer, 2023/12/12
- [nongnu] elpa/git-commit 79c8c74b2c 2/6: magit-rev-fixup-target: New function, ELPA Syncer, 2023/12/12
- [nongnu] elpa/git-commit b187753717 6/6: magit-insert-section-body: Ensure parent sections get extended, ELPA Syncer, 2023/12/12
- [nongnu] elpa/git-commit 025c48ed68 5/6: magit-section-lineage: Optionally return objects instead of types, ELPA Syncer, 2023/12/12
- [nongnu] elpa/git-commit 8f47df0eb1 1/6: magit--ext-regexp-quote: New function, ELPA Syncer, 2023/12/12