sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
399 stars 74 forks source link

If no branch can be identified, use git rev-parse HEAD #48

Closed jwiegley closed 6 years ago

jwiegley commented 6 years ago

This makes it possible to get a git-link for detached HEADs, which commonly happens with submodules.

sshaw commented 6 years ago

Hi, thanks for the PR.

A similar issue came up in #46. The concern I had is what to do if one has set git-link-use-commit to nil. In this case we'd still use the commit. The gist of the conversation can be found starting here.

sshaw commented 6 years ago

Closing. Will address via #46 as part of future 1.0 release.