From b8ce1fe1b2abfc6b38a6c6451ef8074f2a83a8eb Mon Sep 17 00:00:00 2001 From: Uladzislau Shablinski Date: Sat, 6 Aug 2016 17:08:35 +0300 Subject: Update upgrade/outdated documentation (#650) --- Library/Homebrew/cmd/outdated.rb | 6 +++++- Library/Homebrew/cmd/upgrade.rb | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'Library') 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=` 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` [] [`--cleanup`] []: +#: * `upgrade` [] [`--cleanup`] [`--fetch-HEAD`] []: #: Upgrade outdated, unpinned brews. #: #: Options for the `install` command are also valid here. #: #: If `--cleanup` is specified then remove previously installed 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 are given, upgrade only the specified brews (but do so even #: if they are pinned; see `pin`, `unpin`). -- cgit v1.2.3