sshaw / git-link

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

Change git-link-current-branch match logic #5

Closed empiricalthought closed 10 years ago

empiricalthought commented 10 years ago

We have git branch names that include slashes. This alternate method of extracting the current branch name allows git-link to work on these branches.

sshaw commented 10 years ago

I tried it with no string-match at all, and there was a newline at the end of the value.

I modified your commit to use git-link-chomp.

Thanks for the contribution :thumbsup: