diff options
| author | Ben Muschol | 2017-09-27 16:32:13 -0400 |
|---|---|---|
| committer | Ben Muschol | 2017-09-27 16:32:13 -0400 |
| commit | fe5c885da0b8b69a5de74647e4181b137acb835f (patch) | |
| tree | 769a9bd51965936583bc0d5e838bc7d54732d0ad /Library/Homebrew/tap.rb | |
| parent | 204f37049122c1ab371a71ae12e8d16aa8ffb23f (diff) | |
| download | brew-fe5c885da0b8b69a5de74647e4181b137acb835f.tar.bz2 | |
Implement changes
Diffstat (limited to 'Library/Homebrew/tap.rb')
| -rw-r--r-- | Library/Homebrew/tap.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index f232be428..acf2d196b 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -118,6 +118,12 @@ class Tap path.git? end + # git branch for this {Tap}. + def git_branch + raise TapUnavailableError, name unless installed? + path.git_branch + end + # git HEAD for this {Tap}. def git_head raise TapUnavailableError, name unless installed? |
