Created
April 17, 2010 12:34
-
-
Save mislav/369513 to your computer and use it in GitHub Desktop.
brew-log command for displaying git log of selected Homebrew formulae
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
if ARGV.empty? | |
puts "Usage: #{File.basename $0} <names>" | |
exit(2) | |
else | |
dir = `brew --prefix`.chomp | |
exec 'git', "--git-dir=#{dir}/.git", 'log', '--', *ARGV.map { |name| | |
"Library/Formula/#{name}.rb" | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment