git-iblame
A command line tool to do git blame
interactively.
This tool can traverse to older trees interactively, to see all the history up to the initial commit. It makes easy to find out how the code of your interests were changed.
Install
Prerequisites
- Install Rust if it's not installed yet.
From crates.io
cargo install git-iblame
From github
cargo install --git https://github.com/kojiishi/git-iblame
From local checkout
After changing the current directory to the checkout directory:
cargo install --path .
Usages
To start an interactive git blame
session,
specify the path of the file in a git repository.
git-iblame <path-to-file>
The output is similar to git blame
,
with the current line highlighted.
You can move the current line,
or traverse the git history of the current line.
Please see the help by pressing the h
key
for the full commands and their key bindings.
Major commands are:
- h: Show the help.
- q: Quit the program.
- s: Show the commit at the current line.
- d or Ctrl+Enter: Show the current file of the commit at the current line.
- c: Copy the hash of the current line commit to the clipboard.
- Enter or Right: Traverse to the parent commit of the commit at the current line.
- Backspace or Left: Undo the last traverse; i.e., traverse back to the last newer tree.
- Up/Down: Move the current line to the previous/next commit.