Vim:Fugitive:Glog - How to get commits for current file rather than revisions

Kyle Heironimus picture Kyle Heironimus · Sep 20, 2013 · Viewed 6.9k times · Source

Currently, if I type :Glog I get the list of revisions for the current file.

If I type :Glog -- I get the list of commits for all files.

What do I need to type to get the of commits for the current file?

Answer

lsaffie picture lsaffie · Mar 20, 2014

For sake of completeness, once you have the revisions loaded in your buffer, you can browse through them by opening the quickfix list

:Glog -- %
:copen

Load the last 10 commits for the current file

:Glog -10 -- %