diff options
| author | Uladzislau Shablinski | 2016-08-06 17:08:35 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-08-06 22:08:35 +0800 |
| commit | b8ce1fe1b2abfc6b38a6c6451ef8074f2a83a8eb (patch) | |
| tree | 9861927ad5f8f751d45d5e1f5be539db9432bf19 /Library | |
| parent | 072e5df4ed3afb0ca6a7bbd8e869d9ff8e5f8d73 (diff) | |
| download | brew-b8ce1fe1b2abfc6b38a6c6451ef8074f2a83a8eb.tar.bz2 | |
Update upgrade/outdated documentation (#650)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/outdated.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/upgrade.rb | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index 7e9364416..b0092a862 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -1,4 +1,4 @@ -#: * `outdated` [`--quiet`|`--verbose`|`--json=v1`]: +#: * `outdated` [`--quiet`|`--verbose`|`--json=v1`] [`--fetch-HEAD`]: #: Show formulae that have an updated version available. #: #: By default, version information is displayed in interactive shells, and @@ -11,6 +11,10 @@ #: #: If `--json=`<version> is passed, the output will be in JSON format. The only #: valid version is `v1`. +#: +#: If `--fetch-HEAD` is passed, fetch upstream repository to detect that HEAD +#: formula is outdated. Otherwise HEAD-installation is considered outdated if +#: new stable or devel version is bumped after that installation. require "formula" require "keg" diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 1933c0501..2306e9061 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -1,10 +1,14 @@ -#: * `upgrade` [<install-options>] [`--cleanup`] [<formulae>]: +#: * `upgrade` [<install-options>] [`--cleanup`] [`--fetch-HEAD`] [<formulae>]: #: Upgrade outdated, unpinned brews. #: #: Options for the `install` command are also valid here. #: #: If `--cleanup` is specified then remove previously installed <formula> version(s). #: +#: If `--fetch-HEAD` is passed, fetch upstream repository to detect that HEAD +#: formula is outdated. Otherwise HEAD-installation is considered outdated if +#: new stable or devel version is bumped after that installation. +#: #: If <formulae> are given, upgrade only the specified brews (but do so even #: if they are pinned; see `pin`, `unpin`). |
