From af66c12108466fe541403638a8742a9dc78039e3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 30 Mar 2015 08:03:10 +0100 Subject: [PATCH] Formula Cookbook: clarify new use of tag revision. --- share/doc/homebrew/Formula-Cookbook.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md index 5dc9ac03a2..b317c9c24d 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 ```