~mgmarlow/git-share

A command for sharing code links with colleagues.
Fix a bug caused by relative filenames for git-share-commit
Add some more docs
Add region support

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~mgmarlow/git-share
read/write
git@git.sr.ht:~mgmarlow/git-share

You can also use your local clone with git send-email.

#git-share

builds.sr.ht status

An emacs package for sharing code links with colleagues.

Supports:

  • Github
  • Sourcehut
  • Gitlab

#Installation

#Emacs 29

Use package-vc-install:

M-x package-vc-install https://git.sr.ht/~mgmarlow/git-share

#Older versions

Clone the repo and update your load path:

git clone https://git.sr.ht/~mgmarlow/git-share /path/to/git-share
(add-to-list 'load-path "/path/to/git-share")
(require 'git-share)

#Commands

  • M-x git-share: Copies a URL to the current line of code.

  • M-x git-share-commit: Copies a URL to the commit responsible for the current line of code, determined via git blame.

#Configuration

  • git-share-open-links-in-browser: When t, opens links in your browser when copied.

#Contributing

Please direct bug reports or patches to the the mailing list.

#Adding new git remotes

Check out this commit for an example: Add Gitlab support.

#License

Licensed under GPL-3.0.