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
- Host: GitHub
- URL: https://github.com/rylan12/homebrew-blame
- Owner: Rylan12
- License: mit
- Archived: true
- Created: 2020-09-12T18:56:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T20:51:22.000Z (about 5 years ago)
- Last Synced: 2025-02-25T18:39:14.219Z (over 1 year ago)
- Topics: brew, command, external, homebrew, homebrew-blame, homebrew-tap, linuxbrew
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.