From 57d84ee95e154bb0b93d720f42fa860aec5f693e Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 9 Jun 2024 12:39:47 +0200 Subject: [PATCH] Add new command 'package-vc-log-incoming' * lisp/emacs-lisp/package-vc.el (package-vc-log-incoming): Implement it. * etc/NEWS: Mention it. (cherry picked from commit 19806248167b9c4edaadbf4ed428a62fd8c5e412) --- etc/NEWS | 5 +++++ lisp/emacs-lisp/package-vc.el | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index 51f59112efb..a7dce7f7fa5 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1508,6 +1508,11 @@ project, that you can quickly select using 'project-switch-project' Controls for which packages Emacs runs extra build commands when installing directly from the package VCS repository. +--- +*** New command 'package-vc-log-incoming'. +This commands displays incoming changes for a VC package without +modifying the current checkout. + --- *** New command to start an inferior Emacs loading only specific packages. The new command 'package-isolate' will start a new Emacs process, as diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index c86577b6b26..45231bd4c73 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -1025,5 +1025,12 @@ See also `vc-prepare-patch'." (vc-prepare-patch (package-maintainers pkg-desc t) subject revisions))) +(defun package-vc-log-incoming (pkg-desc) + "Call `vc-log-incoming' for the package PKG-DESC." + (interactive + (list (package-vc--read-package-desc "Incoming log for package: " t))) + (let ((default-directory (package-desc-dir pkg-desc))) + (call-interactively #'vc-log-incoming))) + (provide 'package-vc) ;;; package-vc.el ends here -- 2.39.2