[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit 44a05c55d5 07/76: orgit-rev-store: Always use commit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit 44a05c55d5 07/76: orgit-rev-store: Always use commit SHA-1 hash |
Date: |
Thu, 13 Jan 2022 13:58:43 -0500 (EST) |
branch: elpa/orgit
commit 44a05c55d5153fbcb7427160a505e476f7b3d65b
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Jonas Bernoulli <jonas@bernoul.li>
orgit-rev-store: Always use commit SHA-1 hash
Before, `org-rev-store' used whatever revision identifier was passed to
`magit-show-commit', which could be relative to a branch name (e.g.,
"master~2"). For the purpose of revision commit links, this is
problematic because it may not refer to the same commit at a later time.
---
orgit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orgit.el b/orgit.el
index 00c62fd27c..2a080b4305 100644
--- a/orgit.el
+++ b/orgit.el
@@ -190,7 +190,7 @@ If all of the above fails then `orgit-export' raises an
error."
(defun orgit-rev-store ()
(when (memq major-mode '(magit-commit-mode magit-revision-mode))
(let ((repo (abbreviate-file-name default-directory))
- (rev (car magit-refresh-args)))
+ (rev (magit-rev-parse (car magit-refresh-args))))
(org-store-link-props
:type "orgit-rev"
:link (format "orgit-rev:%s::%s" repo rev)
- [nongnu] elpa/orgit d91d16903d 27/76: support relative paths when opening and exporting links, (continued)
- [nongnu] elpa/orgit d91d16903d 27/76: support relative paths when opening and exporting links, ELPA Syncer, 2022/01/13
- [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 <=
- [nongnu] elpa/orgit e0859c3c71 08/76: autoload functions where necessary, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit faf8a24c87 18/76: orgit-rev-store: preserve refs and abbreviate hashes, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 6b2eba9c48 34/76: Changing heading of library footer section, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ba15371536 36/76: Update for Emacs v2.90.0, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 2456436a7e 48/76: orgit-rev-store: Store all marked commits, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1e578f8cf9 53/76: Define org-link-store-props as an alias for org-store-link-props, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ad3b8c4182 04/76: orgit-rev-store: support version 2.1.0 of Magit, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 357d037307 09/76: bump numbers, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0938f83a07 12/76: Merge pull request #5 from Malabarba/master, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 12bfadf603 23/76: orgit-{log, rev}-open: call magit commands with proper arguments, ELPA Syncer, 2022/01/13