brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Formula.head
Adds a {.head} {SoftwareSpec}.
This can be installed by passing the `--HEAD` option to allow
installing software directly from a branch of a version-control repository.
If called as a method this provides just the {url} for the {SoftwareSpec}.
If a block is provided you can also add {.depends_on} and {#patch}es just to the {.head} {SoftwareSpec}.
The download strategies (e.g. `:using =>`) are the same as for {url}.
`master` is the default branch and doesn't need stating with a `:branch` parameter.
<pre>head "https://we.prefer.https.over.git.example.com/.git"</pre>
<pre>head "https://example.com/.git", :branch => "name_of_branch", :revision => "abc123"</pre>
or (if autodetect fails):
<pre>head "https://hg.is.awesome.but.git.has.won.example.com/", :using => :hg</pre>Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/formula.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Formula-head-for-pr
# Commit to gitgit add Library/Homebrew/formula.rbgit commit -m "better docs for Formula.head"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Formula-head-for-pr
hub pull-request
# Celebrate!