Git blame
Show Git blame information while viewing a file in Sublime Text
Details
Installs
- Total 49K
- Win 9K
- Mac 26K
- Linux 14K
Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 4 | 0 | 2 | 1 | 5 | 2 | 0 | 5 | 3 | 2 | 0 | 1 | 0 | 2 | 2 | 2 | 3 | 1 | 2 | 2 | 5 | 6 | 2 | 0 | 2 | 0 | 4 | 6 | 2 | 3 | 1 | 1 | 0 | 2 | 2 | 3 | 4 | 1 | 0 | 1 | 1 | 1 | 3 | 4 | 1 |
Mac | 0 | 3 | 5 | 1 | 3 | 1 | 2 | 6 | 3 | 8 | 3 | 2 | 0 | 2 | 4 | 8 | 8 | 10 | 1 | 3 | 3 | 5 | 4 | 6 | 4 | 4 | 1 | 4 | 7 | 7 | 6 | 2 | 0 | 1 | 7 | 4 | 6 | 3 | 5 | 2 | 0 | 5 | 6 | 10 | 12 | 10 |
Linux | 0 | 9 | 2 | 11 | 1 | 2 | 5 | 4 | 3 | 4 | 5 | 5 | 3 | 4 | 7 | 5 | 5 | 4 | 2 | 1 | 7 | 7 | 2 | 9 | 2 | 1 | 0 | 9 | 5 | 5 | 2 | 7 | 2 | 1 | 3 | 4 | 9 | 5 | 3 | 1 | 0 | 3 | 8 | 4 | 5 | 11 |
Readme
- Source
- raw.githubusercontent.com
Git blame - Package for Sublime Text
This package enables you to query Git “blame” information for files while you are viewing/editing them in Sublime Text.
Blame information tells you who last edited a line, when they did it, and which commit they did it in. You can then choose to show that commit in full including its commit message and diff.
For this package to work, you must already have the git
command-line tool installed, and be viewing/editing a file that is part of a Git repository on your hard drive.
View on the Package Control website
This package was originally created by @psykzz and is now maintained by @frou
How to use
Place the text cursor on the line you are interested in, then press CtrlAltB (Mac/Windows) or CtrlShiftQ (Linux).
(Instead of pressing the keyboard shortcut, you can alternatively right click and select Git Blame from the context menu)
The blame information will appear:
If you want, you can then click [Show]
to show the commit in full:
…or click [Copy]
to copy the Commit ID (aka SHA) to your clipboard.
If the latest blame information was not as illuminating as you hoped for, click the [Prev]
to step back through multiple previous commits that affected the line.
To close the blame information, click the ×
icon, or press the keyboard shortcut again while the text cursor is still on the same line.
Advanced use
In combination with Sublime Text's Multiple Selection feature, you can query blame information for more than one line simultaneously by first placing a text cursor on each line you are interested in, and then running as described above.
You can also query blame information for every line in the entire file simultaneously by pressing CtrlAltShiftB (Mac/Windows) or CtrlShiftC (Linux). Doing this shows blame information in a different style (it's located to the left of the content, and more compact, but with fewer features):
To close all of them, click the ×
icon on any one of them, or press the keyboard shortcut again.
As well as via keyboard shortcuts, this package's commands are also made available in the Command Palette. Type “Git Blame” into it to find them: