diff options
| author | Jack Nagel | 2012-01-05 16:15:33 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-06 14:51:15 -0600 |
| commit | 49bb7b65a5a3e93a97e0ecd0f5eab08f02114f49 (patch) | |
| tree | 360ea445db1c127882a399a6554c2625f8299e3b /Library/Formula/cpptest.rb | |
| parent | 38db885266dfa16623226460533030566b5193a6 (diff) | |
| download | homebrew-49bb7b65a5a3e93a97e0ecd0f5eab08f02114f49.tar.bz2 | |
versions: determine version from a Formula instance
Rather than regex the output of `git show <rev>:<path>`, we write the
output of `git cat-file blog <rev>:<path>` to a temporary file, and then
operate on it just as we would a normal formula.
I haven't observed any speed difference. `git cat-file blob` is faster
than `git show`, but the "slow part" is still the git-rev-list
invocation. But really it's pretty fast overall.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/cpptest.rb')
0 files changed, 0 insertions, 0 deletions
