[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit ac9b1a4286 66/76: orgit-log-export: Reduce arguments
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit ac9b1a4286 66/76: orgit-log-export: Reduce arguments to a single branch |
Date: |
Thu, 13 Jan 2022 13:58:47 -0500 (EST) |
branch: elpa/orgit
commit ac9b1a42863a864fde9d225890ef5464bffdc646
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
orgit-log-export: Reduce arguments to a single branch
All the forges only support showing the log for a single branch,
therefore when exporting more complex logs we have to discard some
information.
---
orgit.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/orgit.el b/orgit.el
index 23f6420491..ffe0e81fd6 100644
--- a/orgit.el
+++ b/orgit.el
@@ -319,7 +319,16 @@ In that case `orgit-rev-store' stores one or more links
instead."
;;;###autoload
(defun orgit-log-export (path desc format)
- (orgit-export path desc format "log" 2))
+ (pcase-let* ((`(,repo ,args) (split-string path "::"))
+ (first-branch (cond ((string-prefix-p "((" args)
+ (caar (read args)))
+ ((string-prefix-p "(" args)
+ (car (read args)))
+ (t args))))
+ (when (string-prefix-p "--" first-branch)
+ (setq first-branch nil))
+ (orgit-export (concat repo "::" first-branch)
+ desc format "log" 2)))
;;;###autoload
(defun orgit-log-complete-link (&optional arg)
- [nongnu] elpa/orgit 78a3932797 45/76: orgit--{current-repository, repository-directory: New functions, (continued)
- [nongnu] elpa/orgit 78a3932797 45/76: orgit--{current-repository, repository-directory: New functions, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 467f424df4 47/76: orgit-store-repository-id: New option, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit d7e773e1b6 50/76: Add .github/FUNDING.yml, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 9e5f93d516 51/76: Update for Org 9.3, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1d257c8cb2 52/76: Change term used for copyright holders, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit a4a565be2a 74/76: Export repository-ID based links, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit f956d802f1 75/76: orgit-rev-description-format: New option, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e8db8dc741 69/76: orgit-*-complete-link: Respect orgit-store-repository-id, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ab28d1785c 67/76: orgit-export: Signal correct error type, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1b0e34b596 73/76: Fix indentation, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ac9b1a4286 66/76: orgit-log-export: Reduce arguments to a single branch,
ELPA Syncer <=
- [nongnu] elpa/orgit 043db4f095 71/76: Use with-eval-after-load, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1e3a958835 11/76: Bump magit dependency down to 2.0.50, ELPA Syncer, 2022/01/13