junegunn / gv.vim

A git commit browser in Vim
1.35k stars 54 forks source link

Checkout feature #104

Closed isaacguerreir closed 3 years ago

isaacguerreir commented 3 years ago

I love using Git Graph and how easy is to visualize the Git Tree and play around with branches and commits. I think a great addition to gv features could be a mapping to checkout a specific commit. So, this is my naive implementation, feel free to give other ideas of how make this betters.

junegunn commented 3 years ago

You can just hit . on a commit to get :Git ┋ ffee0099 and type c<tab><enter>.

isaacguerreir commented 3 years ago

Thank you @junegunn! Much more interesting the idea of having the cursor between git and sha. Closing this!