Once you start using it, make sure to read its help page ( :h fugitive), because it has a very rich functionality so you can find multiple ways to enhance your Git experience. Iâve only started to scratch its surface because I only needed a more handy way to interact with git-blame This updates the contents of the buffer with the previous version of the file.Ä«oth commands keep the blame tab open and refreshes the information therein, so you can continue to investigate the commits that resulted in the selected version.įugitive.vim is a powerful Git wrapper. Or maybe its the premier Git plugin for Vim Either way, its 'so awesome, it should be illegal'. By pressing P you can reblame the file on the parent of the selected commit. Fugitive is the premier Vim plugin for Git. The default git blame output format displays the commit hash, author name, date and time, line number, and line content in the following format: Commit Hash (Author name Date Time Line Number) commit message. Reblame at parentĪnother useful feature is to be able to see the evolution of a given line over time. The basic git blame command format is as follows: git blame .You can do just that by hitting - after youâve selected a commit on the blame window. Supposing that you saw a suspicious line in the blame information, and you would like to see a version of the file where that change was committed. Both commands keep the blame tab open and refreshes the information therein, so you can continue to investigate the commits that resulted in the selected version. But there are more reasons to use it: you can easily dive deep into the history. So itâs convenient, especially if you already have a Vim open. Alternatively, running :Gblame again closes this window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |