orgit Atom Feed

Description
Support for Org links to Magit buffers
Latest
orgit-2.0.0.0.20240808.194549.tar (.sig), 2024-Aug-10, 70.0 KiB
Maintainer
Jonas Bernoulli <emacs.orgit@jonas.bernoulli.dev>
Website
https://github.com/magit/orgit
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

1. Link to Magit buffers from Org documents

This package defines several Org link types, which can be used to link to certain Magit buffers. Use the command org-store-link while such a buffer is current to store a link. Later you can insert it into an Org buffer using the command org-insert-link.

1.1. Format

The three link types defined here take these forms:

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/::ARGS  links to a magit-revision buffer

Before v1.3.0 only the first revision was stored in orgit-log links, and all other revisions were discarded. All other arguments were also discarded and Magit's usual mechanism for determining the switches and options was used instead.

For backward compatibility, and because it is the common case and looks best, ARGS by default has the form REV as before. However if linking to a log buffer that shows the log for multiple revisions, then ("REV"...) is used instead. If orgit-log-save-arguments is non-nil, then (("REV"...) ("ARG"...) [("FILE"...)]) is always used, which allows restoring the buffer most faithfully.

1.2. Export

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


Compile NonGNU ELPA MELPA Stable MELPA

Old versions

orgit-1.9.0.0.20240805.142859.tar.lz2024-Aug-0517.6 KiB
orgit-1.9.0.0.20240713.192819.tar.lz2024-Jul-1317.6 KiB
orgit-1.9.0.0.20240415.154628.tar.lz2024-Apr-1517.6 KiB
orgit-1.9.0.0.20240206.182809.tar.lz2024-Mar-3117.6 KiB
orgit-1.9.0.0.20240101.222233.tar.lz2024-Jan-0217.5 KiB
orgit-1.9.0.0.20231217.185027.tar.lz2023-Dec-1717.5 KiB
orgit-1.9.0.0.20230917.100155.tar.lz2023-Sep-1717.5 KiB
orgit-1.8.0.50snapshot0.20230212.201343.tar.lz2023-Feb-1217.5 KiB
orgit-1.8.0snapshot0.20221020.111332.tar.lz2022-Oct-2017.3 KiB
orgit-1.7.2.0.20220107.120651.tar.lz2022-Jan-136.36 KiB