aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-10-01 13:29:18 +0100
committerMike McQuaid2016-10-01 13:29:18 +0100
commit842ae5dfee4c41e8c5f390bd096fbf018453afef (patch)
treea36058fd5286a322efe73098527e882b9dfb71b0
parent98e7fb6b60c9463bd7d259bb16a00244e95bbc82 (diff)
downloadbrew-842ae5dfee4c41e8c5f390bd096fbf018453afef.tar.bz2
update-test: add --to-tag option.
This option is used to test updating between tags.
-rw-r--r--Library/Homebrew/dev-cmd/update-test.rb5
-rw-r--r--docs/brew.1.html3
-rw-r--r--manpages/brew-cask.12
-rw-r--r--manpages/brew.15
4 files changed, 13 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb
index 18980b691..8d0391f66 100644
--- a/Library/Homebrew/dev-cmd/update-test.rb
+++ b/Library/Homebrew/dev-cmd/update-test.rb
@@ -8,11 +8,16 @@
#: If `--before=<date>` is passed, use the commit at `<date>` as the
#: start commit.
#:
+#: If `--to-tag` is passed, set HOMEBREW_UPDATE_TO_TAG to test updating
+#: between tags.
+#:
#: If `--keep-tmp` is passed, retain the temporary directory containing
#: the new repository clone.
module Homebrew
def update_test
+ ENV["HOMEBREW_UPDATE_TO_TAG"] = "1" if ARGV.include?("--to-tag")
+
cd HOMEBREW_REPOSITORY
start_commit = if commit = ARGV.value("commit")
commit
diff --git a/docs/brew.1.html b/docs/brew.1.html
index c5cb7f642..168fc4bee 100644
--- a/docs/brew.1.html
+++ b/docs/brew.1.html
@@ -591,6 +591,9 @@ not deleted.</p>
<p>If <code>--before=&lt;date></code> is passed, use the commit at <code>&lt;date></code> as the
start commit.</p>
+<p>If <code>--to-tag</code> is passed, set HOMEBREW_UPDATE_TO_TAG to test updating
+between tags.</p>
+
<p>If <code>--keep-tmp</code> is passed, retain the temporary directory containing
the new repository clone.</p></dd>
</dl>
diff --git a/manpages/brew-cask.1 b/manpages/brew-cask.1
index 850d69489..8b969221d 100644
--- a/manpages/brew-cask.1
+++ b/manpages/brew-cask.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW\-CASK" "1" "September 2016" "Homebrew" "brew-cask"
+.TH "BREW\-CASK" "1" "October 2016" "Homebrew" "brew-cask"
.
.SH "NAME"
\fBbrew\-cask\fR \- a friendly binary installer for macOS
diff --git a/manpages/brew.1 b/manpages/brew.1
index f32a6282b..1c9146c3d 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW" "1" "September 2016" "Homebrew" "brew"
+.TH "BREW" "1" "October 2016" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The missing package manager for macOS
@@ -796,6 +796,9 @@ If \fB\-\-commit=<commit>\fR is passed, use \fB<commit>\fR as the start commit\.
If \fB\-\-before=<date>\fR is passed, use the commit at \fB<date>\fR as the start commit\.
.
.IP
+If \fB\-\-to\-tag\fR is passed, set HOMEBREW_UPDATE_TO_TAG to test updating between tags\.
+.
+.IP
If \fB\-\-keep\-tmp\fR is passed, retain the temporary directory containing the new repository clone\.
.
.SH "EXTERNAL COMMANDS"