ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Git blame

by frou ST3

Show Git blame information while viewing a file in Sublime Text

Labels git, blame

Details

Installs

  • Total 53K
  • Win 10K
  • Mac 27K
  • Linux 16K
May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30
Windows 0 1 1 0 0 2 4 2 0 1 0 0 0 0 1 0 3 0 0 2 0 1 2 2 0 0 0 1 1 0 1 0 1 0 3 3 1 3 0 1 0 1 2 2 0 0
Mac 3 5 4 1 0 5 6 5 2 3 0 0 3 1 3 0 1 0 0 2 2 3 2 2 0 2 2 2 8 4 1 0 0 3 4 3 4 1 0 2 6 5 5 6 6 1
Linux 1 3 2 0 2 3 1 3 3 2 0 2 2 0 0 5 4 2 0 2 1 3 7 5 0 1 1 3 2 5 2 2 0 3 5 7 1 4 1 2 0 4 6 4 3 2
0510May 14May 11May 8May 5May 2Apr 29Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8Apr 5Apr 2Mar 30May 14 Linux: 1 Mac: 3 Windows: 0May 13 Linux: 3 Mac: 5 Windows: 1May 12 Linux: 2 Mac: 4 Windows: 1May 11 Linux: 0 Mac: 1 Windows: 0May 10 Linux: 2 Mac: 0 Windows: 0May 9 Linux: 3 Mac: 5 Windows: 2May 8 Linux: 1 Mac: 6 Windows: 4May 7 Linux: 3 Mac: 5 Windows: 2May 6 Linux: 3 Mac: 2 Windows: 0May 5 Linux: 2 Mac: 3 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 2 Mac: 0 Windows: 0May 2 Linux: 2 Mac: 3 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 3 Windows: 1Apr 29 Linux: 5 Mac: 0 Windows: 0Apr 28 Linux: 4 Mac: 1 Windows: 3Apr 27 Linux: 2 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 2 Mac: 2 Windows: 2Apr 24 Linux: 1 Mac: 2 Windows: 0Apr 23 Linux: 3 Mac: 3 Windows: 1Apr 22 Linux: 7 Mac: 2 Windows: 2Apr 21 Linux: 5 Mac: 2 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 2 Windows: 0Apr 18 Linux: 1 Mac: 2 Windows: 0Apr 17 Linux: 3 Mac: 2 Windows: 1Apr 16 Linux: 2 Mac: 8 Windows: 1Apr 15 Linux: 5 Mac: 4 Windows: 0Apr 14 Linux: 2 Mac: 1 Windows: 1Apr 13 Linux: 2 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 3 Mac: 3 Windows: 0Apr 10 Linux: 5 Mac: 4 Windows: 3Apr 9 Linux: 7 Mac: 3 Windows: 3Apr 8 Linux: 1 Mac: 4 Windows: 1Apr 7 Linux: 4 Mac: 1 Windows: 3Apr 6 Linux: 1 Mac: 0 Windows: 0Apr 5 Linux: 2 Mac: 2 Windows: 1Apr 4 Linux: 0 Mac: 6 Windows: 0Apr 3 Linux: 4 Mac: 5 Windows: 1Apr 2 Linux: 6 Mac: 5 Windows: 2Apr 1 Linux: 4 Mac: 6 Windows: 2Mar 31 Linux: 3 Mac: 6 Windows: 0Mar 30 Linux: 2 Mac: 1 Windows: 0May 14 Linux: 1 Mac: 3 Windows: 0May 13 Linux: 3 Mac: 5 Windows: 1May 12 Linux: 2 Mac: 4 Windows: 1May 11 Linux: 0 Mac: 1 Windows: 0May 10 Linux: 2 Mac: 0 Windows: 0May 9 Linux: 3 Mac: 5 Windows: 2May 8 Linux: 1 Mac: 6 Windows: 4May 7 Linux: 3 Mac: 5 Windows: 2May 6 Linux: 3 Mac: 2 Windows: 0May 5 Linux: 2 Mac: 3 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 2 Mac: 0 Windows: 0May 2 Linux: 2 Mac: 3 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 3 Windows: 1Apr 29 Linux: 5 Mac: 0 Windows: 0Apr 28 Linux: 4 Mac: 1 Windows: 3Apr 27 Linux: 2 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 2 Mac: 2 Windows: 2Apr 24 Linux: 1 Mac: 2 Windows: 0Apr 23 Linux: 3 Mac: 3 Windows: 1Apr 22 Linux: 7 Mac: 2 Windows: 2Apr 21 Linux: 5 Mac: 2 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 2 Windows: 0Apr 18 Linux: 1 Mac: 2 Windows: 0Apr 17 Linux: 3 Mac: 2 Windows: 1Apr 16 Linux: 2 Mac: 8 Windows: 1Apr 15 Linux: 5 Mac: 4 Windows: 0Apr 14 Linux: 2 Mac: 1 Windows: 1Apr 13 Linux: 2 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 3 Mac: 3 Windows: 0Apr 10 Linux: 5 Mac: 4 Windows: 3Apr 9 Linux: 7 Mac: 3 Windows: 3Apr 8 Linux: 1 Mac: 4 Windows: 1Apr 7 Linux: 4 Mac: 1 Windows: 3Apr 6 Linux: 1 Mac: 0 Windows: 0Apr 5 Linux: 2 Mac: 2 Windows: 1Apr 4 Linux: 0 Mac: 6 Windows: 0Apr 3 Linux: 4 Mac: 5 Windows: 1Apr 2 Linux: 6 Mac: 5 Windows: 2Apr 1 Linux: 4 Mac: 6 Windows: 2Mar 31 Linux: 3 Mac: 6 Windows: 0Mar 30 Linux: 2 Mac: 1 Windows: 0May 14 Linux: 1 Mac: 3 Windows: 0May 13 Linux: 3 Mac: 5 Windows: 1May 12 Linux: 2 Mac: 4 Windows: 1May 11 Linux: 0 Mac: 1 Windows: 0May 10 Linux: 2 Mac: 0 Windows: 0May 9 Linux: 3 Mac: 5 Windows: 2May 8 Linux: 1 Mac: 6 Windows: 4May 7 Linux: 3 Mac: 5 Windows: 2May 6 Linux: 3 Mac: 2 Windows: 0May 5 Linux: 2 Mac: 3 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 2 Mac: 0 Windows: 0May 2 Linux: 2 Mac: 3 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 3 Windows: 1Apr 29 Linux: 5 Mac: 0 Windows: 0Apr 28 Linux: 4 Mac: 1 Windows: 3Apr 27 Linux: 2 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 2 Mac: 2 Windows: 2Apr 24 Linux: 1 Mac: 2 Windows: 0Apr 23 Linux: 3 Mac: 3 Windows: 1Apr 22 Linux: 7 Mac: 2 Windows: 2Apr 21 Linux: 5 Mac: 2 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 2 Windows: 0Apr 18 Linux: 1 Mac: 2 Windows: 0Apr 17 Linux: 3 Mac: 2 Windows: 1Apr 16 Linux: 2 Mac: 8 Windows: 1Apr 15 Linux: 5 Mac: 4 Windows: 0Apr 14 Linux: 2 Mac: 1 Windows: 1Apr 13 Linux: 2 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 3 Mac: 3 Windows: 0Apr 10 Linux: 5 Mac: 4 Windows: 3Apr 9 Linux: 7 Mac: 3 Windows: 3Apr 8 Linux: 1 Mac: 4 Windows: 1Apr 7 Linux: 4 Mac: 1 Windows: 3Apr 6 Linux: 1 Mac: 0 Windows: 0Apr 5 Linux: 2 Mac: 2 Windows: 1Apr 4 Linux: 0 Mac: 6 Windows: 0Apr 3 Linux: 4 Mac: 5 Windows: 1Apr 2 Linux: 6 Mac: 5 Windows: 2Apr 1 Linux: 4 Mac: 6 Windows: 2Mar 31 Linux: 3 Mac: 6 Windows: 0Mar 30 Linux: 2 Mac: 1 Windows: 0

Readme

Source
raw.​githubusercontent.​com

GitHub release GitHub contributors GitHub issues

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:

Screenshot

If you want, you can then click [Show] to show the commit in full:

Screenshot

…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):

Screenshot

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:

Screenshot