View the history of selected lines in git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GitLineHistory() range | |
exec ":vs | te git log -L '" . a:firstline . "," . a:lastline . ":%'" | |
endfunction | |
command! -range GitLineHistory <line1>,<line2>call GitLineHistory() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment