Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
/ homebrew-blame Public archive

🍺🧐External Homebrew command for viewing git blame output for a formula or cask

License

Notifications You must be signed in to change notification settings

Rylan12/homebrew-blame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homebrew-blame

External Homebrew command for viewing git blame output for a formula or cask.

Installation

brew tap rylan12/blame

Usage

brew blame <formula|cask> [<revision>] [-L <line> | -L <start>,<end>]

Pass -L to choose which lines to annotate. -L <line> will annotate only the given line while -L <start>,<end> will annotate the range of lines from <start> to <end>. Leave <start> or <end> blank (keeping the comma) to annotate from the beginning of the file to <end> or from <start> to the end of the file respectively.

For example, brew blame foo -L 16 will annotate only line 16 of foo.rb but brew blame foo -L 16, will annotate from line 16 to the end of foo.rb

A revision can also be passed as a second named argument. For example, brew blame foo aad80774352^ will annotate foo.rb starting from the parent commit to aad80774352.