28f3b6289d
Context: When using org files, one normally tends to add Github code links to an algorithm/bug explanation so that readers are able to follow along with a PR change. The current `<SPC> g l L` command gets us the URL to the current branch; given the code is in flux, the link becomes non-sensical rather quickly, loosing value when trying to build a document with explanations about the code. This PR allows us to get the Permalink (e.g. link associated to the commit, not the branch); using this, the URL contents will never change with new commits submitted to the repository. Changes: * Add two new functions with associated keybindings: - `<SPC> g l p` maps to `spacemacs/git-permalink` - `<SPC> g l P` maps to `spacemacs/git-permalink-copy-url-only` * The above changes rely on mechanisms of `git-link`, so no new code needs to be introduced |
||
---|---|---|
.. | ||
git | ||
github | ||
perforce | ||
version-control |