aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-21 15:14:44 +0100
committerMike McQuaid2013-09-22 09:52:05 +0100
commitf5af7aeef6ab552209f079165a2d783d9878e85a (patch)
tree38de9d99b763d98f55eea44f778d7759e0914747 /Library
parent8bdf158032039986a13af005cb0d66c654219ef3 (diff)
downloadhomebrew-f5af7aeef6ab552209f079165a2d783d9878e85a.tar.bz2
versions: add branch support in rev_list.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index 1dbe1a64a..ffd2c00c8 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -61,9 +61,9 @@ class Formula
end
end
- def rev_list
+ def rev_list branch='HEAD'
repository.cd do
- `git rev-list --abbrev-commit HEAD -- #{entry_name}`.split
+ `git rev-list --abbrev-commit #{branch} -- #{entry_name}`.split
end
end