Skip to content

Instantly share code, notes, and snippets.

@mislav
Created April 17, 2010 12:34
Show Gist options
  • Save mislav/369513 to your computer and use it in GitHub Desktop.
Save mislav/369513 to your computer and use it in GitHub Desktop.
brew-log command for displaying git log of selected Homebrew formulae
#!/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