diff options
| author | Nuno Sousa | 2015-02-25 00:55:10 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-25 18:13:02 +0000 |
| commit | 4403b0bf248c4c6a13b4db1dcdbced6e60358c93 (patch) | |
| tree | e7015d7c1c2663ec0759a5ae9e8d9eac717b4c7b | |
| parent | 66d1133e1bbeab4075ff314013cad1315681ddf1 (diff) | |
| download | homebrew-4403b0bf248c4c6a13b4db1dcdbced6e60358c93.tar.bz2 | |
git-fixup 1.0.0 (new formula)
Add git-fixup formula
Closes #37166.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/git-fixup.rb | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
