An open API service indexing awesome lists of open source software.

https://github.com/rylan12/homebrew-blame

🍺🧐External Homebrew command for viewing git blame output for a formula or cask
https://github.com/rylan12/homebrew-blame

brew command external homebrew homebrew-blame homebrew-tap linuxbrew

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# homebrew-blame

External [Homebrew](https://github.com/Homebrew/brew) command for viewing `git blame` output for a formula or cask.

## Installation

```sh
brew tap rylan12/blame
```

## Usage

```sh
brew blame [] [-L | -L ,]
```

Pass `-L` to choose which lines to annotate. `-L ` will annotate only the given line while `-L ,` will annotate the range of lines from `` to ``. Leave `` or `` blank (keeping the comma) to annotate from the beginning of the file to `` or from `` 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`.