versions: add branch support in rev_list.

This commit is contained in:
Mike McQuaid 2013-09-21 15:14:44 +01:00
parent 4702774616
commit 22e47ffa43

View File

@ -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