diff options
| author | Adam Russell | 2015-03-23 20:44:12 +0530 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-25 08:58:55 +0000 |
| commit | 46bbc63d7937d932185f178d0df8c3b7c9ca8bc1 (patch) | |
| tree | 1f11c409a088a4d71537f279aa347787d9800290 /Library | |
| parent | 489cba2b76c322bc37761dc5b7f2f514097745f0 (diff) | |
| download | homebrew-46bbc63d7937d932185f178d0df8c3b7c9ca8bc1.tar.bz2 | |
git-stree 0.4.0 (new formula)
Closes #37996.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/git-stree.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/git-stree.rb b/Library/Formula/git-stree.rb new file mode 100644 index 000000000..c3c3cdcb2 --- /dev/null +++ b/Library/Formula/git-stree.rb @@ -0,0 +1,29 @@ +class GitStree < Formula + homepage "https://github.com/tdd/git-stree" + head "https://github.com/tdd/git-stree.git" + url "https://github.com/tdd/git-stree/archive/v0.4.0.tar.gz" + sha256 "c04d19c8eb1a566a8e7f373d447ab7e3480ee95f94802fa957afeb22c4bed0ef" + + def install + bin.install "git-stree" + bash_completion.install "git-stree-completion.bash" => "git-stree" + end + + test do + mkdir "mod" do + system "git", "init" + touch "HELLO" + system "git", "add", "HELLO" + system "git", "commit", "-m", "testing" + end + + mkdir "container" do + system "git", "init" + touch ".gitignore" + system "git", "add", ".gitignore" + system "git", "commit", "-m", "testing" + + system "git", "stree", "add", "mod", "-P", "mod", "../mod" + end + end +end |
