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

Git blame

by frou ST3

Sublime text 3 - Git blame the line

Labels git, blame

Details

Installs

  • Total 24K
  • Win 4K
  • OS X 13K
  • Linux 7K
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 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
Windows 2 5 6 7 12 13 11 2 3 4 9 7 11 11 3 0 4 5 11 8 8 2 4 3 9 6 5 9 4 3 4 9 11 15 12 3 6 14 20 14 11 7 1 3 7 6
OS X 2 11 13 23 25 34 17 5 6 25 24 23 16 20 8 7 10 28 28 25 21 4 4 17 20 23 32 25 2 5 24 24 30 20 29 4 7 30 37 34 28 17 5 9 20 24
Linux 1 6 7 11 13 14 15 3 1 16 16 17 20 15 0 5 13 22 13 10 13 1 2 13 8 16 19 12 4 7 18 13 22 20 23 5 4 23 22 18 25 13 1 4 16 23

Readme

Source
raw.​githubusercontent.​com

GitHub release GitHub contributors GitHub issues

Git blame - Package for Sublime Text 3

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 insertion 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)

Screenshot

The blame information will appear. You can then click [Show] to show the commit in full, or [Copy] to copy the Commit ID (aka SHA) to your clipboard. Click ✖ or press the keyboard shortcut again to close the blame information.

Advanced use

In combination with Sublime Text's Multiple Cursor feature, you can query blame information for more than one line simultaneously by first placing a cursor on each line you are interested in.

You can also query blame information for every line in the entire file simultaneously by pressing CtrlAltShiftB (Mac/Windows) or CtrlShiftC (Linux). Click ✖ or press the keyboard shortcut again to close them.

This package's commands are also made available in the Command Palette. Type “Git Blame” into it to find them.