emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/orgit adcfef22dc 28/76: add README.md


From: ELPA Syncer
Subject: [nongnu] elpa/orgit adcfef22dc 28/76: add README.md
Date: Thu, 13 Jan 2022 13:58:44 -0500 (EST)

branch: elpa/orgit
commit adcfef22dc9bfa6503513d0a937bf4b32ad7ab94
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    add README.md
---
 README.md | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..7573821054
--- /dev/null
+++ b/README.md
@@ -0,0 +1,33 @@
+Link to Magit buffers from Org documents
+========================================
+
+This package defines several Org link types which can be used to
+link to certain Magit buffers.
+
+    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-revision buffer
+
+Such links can be stored from corresponding Magit buffers using
+the command `org-store-link`.
+
+When an Org file containing such links is exported, then the url of
+the remote configured with `orgit-remote` is used to generate a web
+url according to `orgit-export-alist`.  That webpage should present
+approximately the same information as the Magit buffer would.
+
+Both the remote to be considered the public remote, as well as the
+actual web urls can be defined in individual repositories using Git
+variables.
+
+To use a remote different from `orgit-remote` but still use
+`orgit-export-alist` to generate the web urls, use:
+
+    git config orgit.remote REMOTE-NAME
+
+To explicitly define the web urls, use something like:
+
+    git config orgit.status http://example.com/repo/overview
+    git config orgit.log http://example.com/repo/history/%r
+    git config orgit.rev http://example.com/repo/revision/%r
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]