aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2015-03-30 08:03:10 +0100
committerMike McQuaid2015-03-30 08:11:33 +0100
commitf11ef0ffa23da7149282a40e7e5f0039b8687a9e (patch)
tree2e4d75076e5e4ba8f9f8d770432aaba3cbd6a79e
parentf8fece7733a17b58edfbc001eb3daedc1d0c47b1 (diff)
downloadhomebrew-f11ef0ffa23da7149282a40e7e5f0039b8687a9e.tar.bz2
Formula Cookbook: clarify new use of tag revision.
-rw-r--r--share/doc/homebrew/Formula-Cookbook.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md
index 5dc9ac03a..b317c9c24 100644
--- a/share/doc/homebrew/Formula-Cookbook.md
+++ b/share/doc/homebrew/Formula-Cookbook.md
@@ -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?`.
-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
class Foo < Formula
head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
# or :branch => "develop"
- # or :tag => "1_0_release"
+ # or :tag => "1_0_release",
+ # :revision => "090930930295adslfknsdfsdaffnasd13"
end
```