[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit 55292d377c 13/76: replace term commit with revision
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit 55292d377c 13/76: replace term commit with revision |
Date: |
Thu, 13 Jan 2022 13:58:43 -0500 (EST) |
branch: elpa/orgit
commit 55292d377c548d1350b59ea745c23112781398fa
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
replace term commit with revision
We try to use commit as a verb only, the noun being revision.
In `orgit-rev-store' no longer check whether the mode is
`magit-commit-mode', as that doesn't exist in Magit v2.1.0
anymore.
---
orgit.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/orgit.el b/orgit.el
index ccd46645af..12f7f35169 100644
--- a/orgit.el
+++ b/orgit.el
@@ -32,7 +32,7 @@
;;
;; orgit:/path/to/repo/ links to a `magit-status' buffer
;; orgit-log:/path/to/repo/::REV links to a `magit-log' buffer
-;; orgit-rev:/path/to/repo/::REV links to a `magit-commit' buffer
+;; orgit-rev:/path/to/repo/::REV links to a `magit-revision' buffer
;; Such links can be stored from corresponding Magit buffers using
;; the command `org-store-link'.
@@ -95,16 +95,16 @@
"http://git.kernel.org/cgit/%n/commit/?id=%r"))
"Alist used to translate Git urls to web urls when exporting links.
-Each entry has the form (REMOTE-REGEXP STATUS LOG COMMIT).
-If a REMOTE-REGEXP matches the url of the choosen remote then one
-of the corresponding format strings STATUS, LOG or COMMIT is used
+Each entry has the form (REMOTE-REGEXP STATUS LOG REVISION). If
+a REMOTE-REGEXP matches the url of the choosen remote then one of
+the corresponding format strings STATUS, LOG or REVISION is used
according to the major mode of the buffer being linked to.
The first submatch of REMOTE-REGEXP has to match the repository
identifier (which usually consists of the username and repository
name). The %n in the format string is replaced with that match.
-LOG and COMMIT additionally have to contain %r which is replaced
-with the appropriate revision.
+LOG and REVISION additionally have to contain %r which is
+replaced with the appropriate revision.
This can be overwritten in individual repositories using the Git
variables `orgit.status', `orgit.log' and `orgit.commit'. The
@@ -116,7 +116,7 @@ are defined then `orgit-remote' and `orgit.remote' have no
effect."
(regexp :tag "Remote regexp")
(string :tag "Status format")
(string :tag "Log format" :format "%{%t%}: %v")
- (string :tag "Commit format"))))
+ (string :tag "Revision format"))))
(defcustom orgit-remote "origin"
"Default remote used when exporting links.
@@ -186,7 +186,7 @@ If all of the above fails then `orgit-export' raises an
error."
(defun orgit-log-export (path desc format)
(orgit-export path desc format "log" 2))
-;;; Commit
+;;; Revision
;;;###autoload
(eval-after-load "org"
@@ -195,13 +195,13 @@ If all of the above fails then `orgit-export' raises an
error."
;;;###autoload
(defun orgit-rev-store ()
- (when (memq major-mode '(magit-commit-mode magit-revision-mode))
+ (when (eq major-mode 'magit-revision-mode)
(let ((repo (abbreviate-file-name default-directory))
(rev (magit-rev-parse (car magit-refresh-args))))
(org-store-link-props
:type "orgit-rev"
:link (format "orgit-rev:%s::%s" repo rev)
- :description (format "%s (magit-commit %s)" repo rev)))))
+ :description (format "%s (magit-rev %s)" repo rev)))))
;;;###autoload
(defun orgit-rev-open (path)
- [nongnu] elpa/orgit 2330a8cdb5 20/76: orgit-log-store: remove old kludges and todos, (continued)
- [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, 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 <=
- [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
- [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