[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit d91d16903d 27/76: support relative paths when openin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit d91d16903d 27/76: support relative paths when opening and exporting links |
Date: |
Thu, 13 Jan 2022 13:58:44 -0500 (EST) |
branch: elpa/orgit
commit d91d16903d3b8f849e59645812840f81325e5c14
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
support relative paths when opening and exporting links
---
orgit.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/orgit.el b/orgit.el
index 11fb89bae4..9069e5a371 100644
--- a/orgit.el
+++ b/orgit.el
@@ -160,7 +160,7 @@ If all of the above fails then `orgit-export' raises an
error."
;;;###autoload
(defun orgit-status-open (path)
- (magit-status-internal (file-name-as-directory path)))
+ (magit-status-internal (file-name-as-directory (expand-file-name path))))
;;;###autoload
(defun orgit-status-export (path desc format)
@@ -187,8 +187,9 @@ If all of the above fails then `orgit-export' raises an
error."
;;;###autoload
(defun orgit-log-open (path)
- (-let [(default-directory rev)
- (split-string path "::")]
+ (-let* (((dir rev)
+ (split-string path "::"))
+ (default-directory (file-name-as-directory (expand-file-name dir))))
(apply #'magit-log
(cons (list rev) (magit-log-arguments)))))
@@ -223,8 +224,9 @@ points at the revision, if any."
;;;###autoload
(defun orgit-rev-open (path)
- (-let [(default-directory rev)
- (split-string path "::")]
+ (-let* (((dir rev)
+ (split-string path "::"))
+ (default-directory (file-name-as-directory (expand-file-name dir))))
(apply #'magit-show-commit
(cons rev (magit-diff-arguments)))))
@@ -237,7 +239,7 @@ points at the revision, if any."
(defun orgit-export (path desc format gitvar idx)
(-let* (((dir rev)
(split-string path "::"))
- (default-directory (file-name-as-directory dir))
+ (default-directory (file-name-as-directory (expand-file-name dir)))
(remotes (magit-git-lines "remote"))
(remote (magit-get "orgit.remote"))
(remote (cond ((= (length remotes) 1) (car remotes))
- [nongnu] elpa/orgit 9598d71682 55/76: Revert "Add .github/FUNDING.yml", (continued)
- [nongnu] elpa/orgit 9598d71682 55/76: Revert "Add .github/FUNDING.yml", ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit c110371202 57/76: orgit--repository-directory: Support relative paths again, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e147f05577 61/76: eval-after-load: replace string feature w/ symbol, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 229a2ae37a 65/76: orgit-export-alist: Add git.sr.ht entry, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 6a22c2e459 06/76: orgit-log-store: use branch name, not HEAD, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit efde657483 10/76: magit-log-export: use correct variable, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 455dac3422 15/76: orgit-export-alist: add gitlab and remove gitorious, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 2330a8cdb5 20/76: orgit-log-store: remove old kludges and todos, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 718343d40d 22/76: orgit-{log, rev}-open: use -let, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit adcfef22dc 28/76: add README.md, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit d91d16903d 27/76: support relative paths when opening and exporting links,
ELPA Syncer <=
- [nongnu] elpa/orgit c91e662ace 30/76: Add completion functions, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 022687eb02 31/76: Move note about org-magit.el to help elx-license, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 14a4c8a245 44/76: orgit-store-reference: New option, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 158438c540 54/76: Fix typos, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0bec3ea912 03/76: orgit-log-{store, open}: kludge to support version 2.1.0 of Magit, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0881cf9633 05/76: complete Package-Requires list, add Homepage keyword, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 55292d377c 13/76: replace term commit with revision, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 190aa8e3ad 17/76: bump dependencies and copyright, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 731c5cb4f1 16/76: orgit-status-open: adapt to change to magit-status-internal, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 44a05c55d5 07/76: orgit-rev-store: Always use commit SHA-1 hash, ELPA Syncer, 2022/01/13