git-stree 0.4.0 (new formula)
Closes Homebrew/homebrew#37996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
600308ced2
commit
7a8b884cdb
1 changed files with 29 additions and 0 deletions
29
Formula/git-stree.rb
Normal file
29
Formula/git-stree.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue