mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #1201 from MikeMcQuaid/update-test-to-tag
update-test: add --to-tag option.
This commit is contained in:
commit
009fe4fafa
@ -8,11 +8,16 @@
|
|||||||
#: If `--before=<date>` is passed, use the commit at `<date>` as the
|
#: If `--before=<date>` is passed, use the commit at `<date>` as the
|
||||||
#: start commit.
|
#: 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
|
#: If `--keep-tmp` is passed, retain the temporary directory containing
|
||||||
#: the new repository clone.
|
#: the new repository clone.
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
def update_test
|
def update_test
|
||||||
|
ENV["HOMEBREW_UPDATE_TO_TAG"] = "1" if ARGV.include?("--to-tag")
|
||||||
|
|
||||||
cd HOMEBREW_REPOSITORY
|
cd HOMEBREW_REPOSITORY
|
||||||
start_commit = if commit = ARGV.value("commit")
|
start_commit = if commit = ARGV.value("commit")
|
||||||
commit
|
commit
|
||||||
|
@ -593,6 +593,9 @@ not deleted.</p>
|
|||||||
<p>If <code>--before=<date></code> is passed, use the commit at <code><date></code> as the
|
<p>If <code>--before=<date></code> is passed, use the commit at <code><date></code> as the
|
||||||
start commit.</p>
|
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
|
<p>If <code>--keep-tmp</code> is passed, retain the temporary directory containing
|
||||||
the new repository clone.</p></dd>
|
the new repository clone.</p></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -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\.
|
If \fB\-\-before=<date>\fR is passed, use the commit at \fB<date>\fR as the start commit\.
|
||||||
.
|
.
|
||||||
.IP
|
.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\.
|
If \fB\-\-keep\-tmp\fR is passed, retain the temporary directory containing the new repository clone\.
|
||||||
.
|
.
|
||||||
.SH "EXTERNAL COMMANDS"
|
.SH "EXTERNAL COMMANDS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user