From 0e0342e18a66f35e11a97364a078af118bac688e Mon Sep 17 00:00:00 2001
From: Vlad Shablinsky <vladshablinsky@gmail.com>
Date: Thu, 11 Aug 2016 08:53:06 +0200
Subject: [PATCH] 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
       ;;
-- 
GitLab