sshaw / git-link

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

Infer revision used when visiting buffer created by vc-find-revision #52

Closed colonelpanic8 closed 6 years ago

colonelpanic8 commented 6 years ago

I like to use vc-revision-other-window to checkout old versions of a file in emacs. It would be awesome if git-link understood what was happening in this case and would like to the appropriate revision/filename when I use it from one of these buffers.

sshaw commented 6 years ago

Good idea. Do you know what vc-mode function to call?

Currently git-timemachine is supported.

colonelpanic8 commented 6 years ago

@sshaw Ahh Didn't know about git-timemachine, I'll have to look in to that. There's no vc-mode function to do this, and there is no vc-mode, actually. but I figured out a way to do this sloppily by matching on the buffer-file-name