homebrew-core/Formula/git-fixup.rb

33 lines
914 B
Ruby
Raw Normal View History

class GitFixup < Formula
homepage "https://github.com/keis/git-fixup"
url "https://github.com/keis/git-fixup/archive/v1.0.1.tar.gz"
sha1 "0c2f2dd1f6543e537291c0f9e0e06905725b0ccc"
head "https://github.com/keis/git-fixup.git", :branch => "master"
2015-02-25 18:00:09 +00:00
bottle do
cellar :any
2015-03-01 03:17:15 +00:00
sha1 "51111ec8f5f517ea73a5c465dd5ce1b066bbc1f0" => :yosemite
sha1 "3d018cad30af595c34cb2a9eaa5457d6665abf09" => :mavericks
sha1 "324a7f422f26e2a84cb587b2005a0da36c3d08f7" => :mountain_lion
2015-02-25 18:00:09 +00:00
end
def install
system "make", "PREFIX=#{prefix}", "install"
zsh_completion.install "completion.zsh" => "_git-fixup"
end
test do
system "git", "init"
(testpath/"test").write "foo"
system "git", "add", "test"
system "git", "commit", "--message", "Initial commit"
(testpath/"test").delete
(testpath/"test").write "bar"
system "git", "add", "test"
system "git", "fixup"
end
end