aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-flow.rb
diff options
context:
space:
mode:
authorChris Thachuk2010-04-07 15:24:11 -0700
committerAdam Vandenberg2010-04-08 11:51:39 -0700
commit443353f0c796679a7a97e130647012bb03f7e66f (patch)
tree0144eb8db38d5be6c0a2d20f795f4467215c1987 /Library/Formula/git-flow.rb
parent8933132d1bf1b55a38f9a8c58d55660f72004e6e (diff)
downloadhomebrew-443353f0c796679a7a97e130647012bb03f7e66f.tar.bz2
new formula: git-flow
Git extensions to provide high-level repository operations for Vincent Driessen's branching model [1]. [1] http://nvie.com/archives/323 Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Use --HEAD to install development branch. * Don't depend on brew-installed git; user may already have a git.
Diffstat (limited to 'Library/Formula/git-flow.rb')
-rw-r--r--Library/Formula/git-flow.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/git-flow.rb b/Library/Formula/git-flow.rb
new file mode 100644
index 000000000..efe90043b
--- /dev/null
+++ b/Library/Formula/git-flow.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class GitFlow <Formula
+ if ARGV.include? "--HEAD"
+ head 'git://github.com/nvie/gitflow.git', :branch => 'develop'
+ else
+ head 'git://github.com/nvie/gitflow.git', :tag => '0.2.1'
+ version '0.2.1'
+ end
+
+ homepage 'http://github.com/nvie/gitflow'
+
+ # You need git to install, since we install from a git repo
+ # You also need git to run the scripts.
+ # But we're not going to mark it as a dependency just yet:
+ # The user may have a non-brew git installed already.
+ # depends_on 'git'
+
+ def install
+ system "make", "prefix=#{prefix}", "install"
+ end
+end