aboutsummaryrefslogtreecommitdiffstats
path: root/HomebrewFormula/git-branch-list.rb
diff options
context:
space:
mode:
authorTeddy Wing2019-06-01 16:25:11 +0200
committerTeddy Wing2019-06-01 16:25:11 +0200
commit9b87a2600ff5263b6c3a22affdc5b02f3e7fb102 (patch)
treef460e82ccfd5033b96e0668ff0e7d700b0289029 /HomebrewFormula/git-branch-list.rb
downloadhomebrew-formulae-9b87a2600ff5263b6c3a22affdc5b02f3e7fb102.tar.bz2
Add formulae from existing projects
Copy over all Homebrew formulae that I've been putting in project repositories. Now that I have a few formulae, grouping them together in a tap makes it more easy to install and upgrade them. No need to tap multiple repositories or use the full URL to a formula.
Diffstat (limited to 'HomebrewFormula/git-branch-list.rb')
-rw-r--r--HomebrewFormula/git-branch-list.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/HomebrewFormula/git-branch-list.rb b/HomebrewFormula/git-branch-list.rb
new file mode 100644
index 0000000..23866c9
--- /dev/null
+++ b/HomebrewFormula/git-branch-list.rb
@@ -0,0 +1,23 @@
+class GitBranchList < Formula
+ desc "Maintains a list of Git branches that can be checked out quickly"
+ homepage "https://github.com/teddywing/git-branch-list"
+ url "https://github.com/teddywing/git-branch-list/archive/v0.1.2.tar.gz"
+ sha256 "423172ecbb79093060eeca85c31fc8e837ec5733f7244cbc22f36b879062a330"
+
+ def install
+ bin.install "git-branch-list"
+ bash_completion.install "git-branch-list.bash-completion" => "git-branch-list"
+ end
+
+ def caveats; <<~EOS
+ To enable tab completion, add the following to your bash profile:
+
+ source #{etc}/bash_completion.d/git-branch-list
+ EOS
+ end
+
+ test do
+ assert_equal "nl: .git/info/git-branch-list: No such file or directory",
+ shell_output("git branch-list 2>&1", 1).strip
+ end
+end