Formula Cookbook: clarify new use of tag revision.
This commit is contained in:
parent
877eddb127
commit
af66c12108
@ -566,13 +566,14 @@ end
|
|||||||
|
|
||||||
Homebrew understands `git`, `svn`, and `hg` URLs, and has a way to specify `cvs` repositories as a URL as well. You can test whether the `HEAD` is being built with `build.head?`.
|
Homebrew understands `git`, `svn`, and `hg` URLs, and has a way to specify `cvs` repositories as a URL as well. You can test whether the `HEAD` is being built with `build.head?`.
|
||||||
|
|
||||||
To use a specific commit, tag, or branch from a repository, specify head with the `:revision`, `:tag`, or `:branch` option, like so:
|
To use a specific commit, tag, or branch from a repository, specify head with the `:tag` and `:revision`, `:revision`, or `:branch` option, like so:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
|
head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
|
||||||
# or :branch => "develop"
|
# or :branch => "develop"
|
||||||
# or :tag => "1_0_release"
|
# or :tag => "1_0_release",
|
||||||
|
# :revision => "090930930295adslfknsdfsdaffnasd13"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user