From 0e0342e18a66f35e11a97364a078af118bac688e Mon Sep 17 00:00:00 2001 From: Vlad Shablinsky Date: Thu, 11 Aug 2016 08:53:06 +0200 Subject: [PATCH 1/2] Add --fetch-HEAD completions to bash --- etc/bash_completion.d/brew | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/bash_completion.d/brew b/etc/bash_completion.d/brew index 40a1174d0c..67c4c6a3d4 100644 --- a/etc/bash_completion.d/brew +++ b/etc/bash_completion.d/brew @@ -343,7 +343,7 @@ _brew_outdated() { local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in --*) - __brewcomp "--quiet --json=v1" + __brewcomp "--quiet --json=v1 --fetch-HEAD" return ;; esac @@ -520,6 +520,7 @@ _brew_upgrade() { --cleanup --debug --verbose + --fetch-HEAD " return ;; From b7dc6ce7ee0fe580b382bec9859fa1b6129e7930 Mon Sep 17 00:00:00 2001 From: Vlad Shablinsky Date: Thu, 11 Aug 2016 09:12:30 +0200 Subject: [PATCH 2/2] Update zsh-completion for --fetch-HEAD --- share/zsh/site-functions/_brew | 1 + 1 file changed, 1 insertion(+) diff --git a/share/zsh/site-functions/_brew b/share/zsh/site-functions/_brew index 57b07d1cc3..f4f5ac81c4 100644 --- a/share/zsh/site-functions/_brew +++ b/share/zsh/site-functions/_brew @@ -139,6 +139,7 @@ case "$words[1]" in upgrade) _arguments \ '(--cleanup)--cleanup[remove previously installed formula version(s)]' \ + '(--fetch-HEAD)--fetch-HEAD[detect outdated installation by fetching the repo]' \ '1: :->forms' && return 0 if [[ "$state" == forms ]]; then