A git commit browser.
gitv is nice. But I needed a faster, and possibly simpler alternative that I can use with a project with thousands of commits.
Requires fugitive.
Using vim-plug:
Plug 'tpope/vim-fugitive'
Plug 'junegunn/gv.vim':GVto open commit browser- You can pass
git logoptions to the command, e.g.:GV -S foobar -- plugins.
- You can pass
:GV!will only list commits that affected the current file:GV?fills the location list with the revisions of the current file
:GV or :GV? can be used in visual mode to track the changes in the
selected lines.
oor<cr>on a commit to display the content of itoor<cr>on commits to display the diff in the rangeOopens a new tab insteadgbfor:GBrowse]]and[[to move between commits.to start command-line with:Git [CURSOR] SHAà la fugitiveqorgqto close
¯\_(ツ)_/¯
