From 2cd81e50513f96a657454031e52fa4aec773ea97 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 5 Jun 2016 06:27:58 -0700 Subject: [PATCH] update: pop the stash more quietly git stash pop -q will print "Already up-to-date!" if untracked changes are being poppped. This quiets it down unless verbose is set. Closes #320. Signed-off-by: ilovezfs --- Library/Homebrew/cmd/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 54f4f95179..80f49b64df 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -95,11 +95,13 @@ read_current_revision() { pop_stash() { [[ -z "$STASHED" ]] && return - git stash pop "${QUIET_ARGS[@]}" if [[ -n "$HOMEBREW_VERBOSE" ]] then + git stash pop echo "Restoring your stashed changes to $DIR:" git status --short --untracked-files + else + git stash pop "${QUIET_ARGS[@]}" 1>/dev/null fi unset STASHED }