diff options
| author | Mike McQuaid | 2016-10-01 18:23:08 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-01 18:23:08 +0100 |
| commit | 009fe4fafa89e977588e79d34fd7a01e5b34769b (patch) | |
| tree | 80307b270f140955a8b1a3de7e250b5e9245db7e | |
| parent | cc59e624b05dbe227387c2f359deef6bfade3eb2 (diff) | |
| parent | 842ae5dfee4c41e8c5f390bd096fbf018453afef (diff) | |
| download | brew-009fe4fafa89e977588e79d34fd7a01e5b34769b.tar.bz2 | |
Merge pull request #1201 from MikeMcQuaid/update-test-to-tag
update-test: add --to-tag option.
| -rw-r--r-- | Library/Homebrew/dev-cmd/update-test.rb | 5 | ||||
| -rw-r--r-- | docs/brew.1.html | 3 | ||||
| -rw-r--r-- | manpages/brew.1 | 3 |
3 files changed, 11 insertions, 0 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 bfdd885f0..0911dd79c 100644 --- a/docs/brew.1.html +++ b/docs/brew.1.html @@ -593,6 +593,9 @@ not deleted.</p> <p>If <code>--before=<date></code> is passed, use the commit at <code><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.1 b/manpages/brew.1 index 2642a0e28..ada470f19 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -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" |
