sponsor Vim development Vim logo Vim Book Ad

git log : A Git Tree, Log and History Viewer and Diff Tool

 script karma  Rating 5/2, Downloaded by 6963  Comments, bugs, improvements  Vim wiki

created by
Peter Antoine
script type
This plugin simply will show the commit history of the current file in the window and allow you to diff this against older commits. It also allows you to diff it against different commits in different branches.

You can find more information at: https://github.com/PAntoine/vimgitlog

Please can you report and problems there, as it is easier to track them in one place.
install details
Copy the gitlog.vim file to plugins, the gitlog.txt to doc.

Call :helpt <path to doc directory>/gitlog.txt

And that should be that.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimgitlog-version_6.0.0.tar.gz 6.0.0 2017-01-20 7.3 Peter Antoine vimgitlog now works on windows.
BUG: Windows needs to pass unix paths to git
BUG: Fix pathing for file diff
BUG: Part of fix case-sensitive directory ordering.
BUG: Fix setup for multi-byte encoding.
BUG: Fix path handling for windows.
vimgitlog-version_5.1.1.tar.gz 5.1.1 2017-01-03 7.3 Peter Antoine Basically fixed some backward compatibility issues with ubuntu 12.4 and added a couple of useful features.

BUG: When refreshing a dir propagate changes up the tree.
BUG: Open files in directory that have been deleted.
BUG: Fixed undefined variable for old versions of git.
BUG: Fixed work-dir work-tree incorrect parameter.
BUG: fixed backwards compatibility issue with expand().
BUG: fixed window error on exit.
BUG: Fixed file-system deleted files not showing up in tree.
BUG: Fixed tree reset in the root not correctly working.
NEW_FEATURE: Added file commands.
NEW_FEATURE: View commit as a patch.
vimgitlog-version_5.1.0.tar.gz 5.1.0 2015-12-05 7.4 Peter Antoine BUG: Not all hashes are 7 chars (and couple of syntax fixes)
BUG: correctly find sub-directories when not started at root
BUG: correctly find files when gitlog started in sub-dir
BUG: Redraw messed up git tree
BUG: tree open did not start at first tree item.
NEW_FEATURE: Add version to make life eaiser
NEW_FEATURE: Goto Previous Change
NEW_FEATURE: Goto Next Change
NEW_FEATURE: Allow for toggling the hidden files.
NEW_FEATURE: Toggle branch window
vimgitlog-version_5.0.0.tar.gz 5.0.0 2015-05-05 7.4 Peter Antoine (I have upped the version requirements - as I dont current have version 7.3 to test against)

PERFORMANCE: Tree walking time substantially better.
PERFORMANCE: Reduced the amount of unrequired git accesses.
NEW_FEATURE: Properly coalescing of the repo and local directory names.
NEW_FEATURE: Make reset head also reset branch.
NEW_FEATURE: Goto latest on current selected branch.
NEW_FEATURE: sub-git trees supported.
NEW_FEATURE: Handling of Non-git trees better.
NEW_FEATURE: Repo support.
NEW_FEATURE: additional command.
BUG: If object type is different repo vs local add two items.
BUG: Added back local dot files (woops!).
BUG: Removed rubbish file added in empty directories.
BUG: Fixed toggle resetting branch state.
BUG: Syntax Fixes.
vimgitlog-version_4.0.1.tar.gz 4.0.1 2015-03-17 7.3 Peter Antoine PA: BUG: Fixed issue with sym-link loops.
PA: BUG: Fixed issue with trees not properly displaying in sub-dirs.
PA: BUG: Fixed issue with documentation being wrong.
PA: BUG: Fixed syntax highlighting.
PA: BUG: Fixed manual opening of sub-dir was not correctly filtering.
PA: NEW_FEATURE: Not walking links that loop.
PA: NEW_FEATURE: Link highlighting.
vimgitlog-version_4.0.0.tar.gz 4.0.0 2015-03-15 7.3 Peter Antoine     Version 4.0.0
    NEW FEATURE: Show only changed files.
    NEW FEATURE: Filter files and directories by name.
    NEW FEATURE: Walk Full Tree.
    NEW FEATURE: Ability to not check files.
    Fixed for git behaviour change observed with git 1.9.+
    Reorganised some of the code, as it was a bit rubbish.
vimgitlog-version_3.1.0.tar.gz 3.1.0 2013-06-08 7.3 Peter Antoine There is a keyhandling change that might annoy, but I think it makes more sense this way. Soz, if that annoys.

- Changed <cr> on code tree to open local (also added 'p' for previous version).
- Set scrolloff to 999 in tree - to center the tree.
- Added indicator for the directories and their status.
- Fixed syntax highlighting.
- Added 'x' to close the parent in tree view.
vimgitlog-version_3.0.0.tar.gz 3.0.0 2013-05-25 7.3 Peter Antoine submodules
And now for the understatement. Added Sub-Module support. Simple.
vimgitlog-version_2.1.2.tar.gz 2.1.2 2013-05-22 7.3 Peter Antoine Fixed a few issues.
- Now centres (better) on tree window open.
- Can be opened to default mode.
- Tree now properly opens directories that are sub.
vimgitlog-version_2.1.1.tar.gz 2.1.1 2013-05-07 7.3 Peter Antoine Added History TreeView.
Fixed Hi-lighting
Fixed Branch window's off by one.
vimgitlog-version_2.0.2.tar.gz 2.0.2 2013-04-26 7.3 Peter Antoine Fixed broken syntax and toggle.
vimgitlog-version_2.0.1.tar.gz 2.0.1 2013-04-26 7.3 Peter Antoine Incorrect version released - now releasing the correct one.
vimgitlog-version_2.0.0.tar.gz 2.0.0 2013-04-26 7.3 Peter Antoine Added the ability to walk a revision tree for any commit.
Fixed bug in the branch window.
vimgitlog-version_1.3.1.tar.gz 1.3.1 2013-03-15 7.3 Peter Antoine Fixed problem with marge branches not being diff'ed and fixed syntax highlighting to handle the branches.
vimgitlog-version_1.3.0.tar.gz 1.3.0 2013-01-08 7.3 Peter Antoine Added console support. Changed the way that files are loaded.
vimgitlog-version_1.2.0.tar.gz 1.2.0 2012-12-15 7.3 Peter Antoine Added repository history search.
Just select the commits in the log window and press 's' and then type in the search string and it will display a list of searches. The '<cr>' and 'o' keys will handle work the same as in the log window.
vimgitlog-version_1.1.2.tar.gz 1.1.2 2012-12-10 7.0 Peter Antoine Fixed broken plugin. Also fixed issue that was caused if a branch name had special chars that the "system" callout did not like stopping the log from getting the branch information.
vimgitlog-version_1.1.1.tar.gz 1.1.1 2012-11-26 7.0 Peter Antoine Fixed/Added the ability to git diff files that are not in a repository that is a parent of the current one. Note sure if that is a fix or a new feature.
vimgitlog-version_1.1.0.tar.gz 1.1.0 2012-10-27 7.0 Peter Antoine Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github