From 4403b0bf248c4c6a13b4db1dcdbced6e60358c93 Mon Sep 17 00:00:00 2001 From: Nuno Sousa Date: Wed, 25 Feb 2015 00:55:10 +0000 Subject: git-fixup 1.0.0 (new formula) Add git-fixup formula Closes #37166. Signed-off-by: Mike McQuaid --- Library/Formula/git-fixup.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Library/Formula/git-fixup.rb diff --git a/Library/Formula/git-fixup.rb b/Library/Formula/git-fixup.rb new file mode 100644 index 000000000..555216992 --- /dev/null +++ b/Library/Formula/git-fixup.rb @@ -0,0 +1,25 @@ +class GitFixup < Formula + homepage "https://github.com/keis/git-fixup" + url "https://github.com/keis/git-fixup/archive/v1.0.0.tar.gz" + sha1 "836613c7b9d1ccafaa5f5250b6ff2e125fabf974" + + head "https://github.com/keis/git-fixup.git", :branch => "master" + + 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 -- cgit v1.2.3