diff options
| author | Martin Afanasjew | 2016-01-27 00:46:31 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-01-27 19:07:09 +0100 |
| commit | 4cc8d3ed8b03f1cb84fe66c911f9c3ced936a185 (patch) | |
| tree | df30817de364b08723601947a91fc85fb59db434 /Library/Homebrew/cmd | |
| parent | 2e2d2ab6ab8ed85fbb6a5524e6abc30df1731541 (diff) | |
| download | brew-4cc8d3ed8b03f1cb84fe66c911f9c3ced936a185.tar.bz2 | |
diagnostic: speed up check for outdated Homebrew
Determine the age of the local `HEAD` first and only if it is older than
24 hours proceed with the much more expensive `git ls-remote` to check
if there are any new upstream commits (there usually will be).
This keeps the overall logic unaltered, but significantly speeds up the
check for users that have recently updated (still slow for all others).
Closes Homebrew/homebrew#48499.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions
