From: Thomas Gummerer Date: Sun, 19 Mar 2017 20:23:50 GMT Subject: [PATCH/RFC 2/3] stash: make push -p -q --no-keep-index quiet Message-ID: <20170319202351.8825-3-t.gummerer@gmail.com> In-Reply-To: <20170319202351.8825-1-t.gummerer@gmail.com> Currently when using "git stash push -p -q --no-keep-index", the -q flag is not passed to the git reset which is executed when --no-keep-index is also passed in. This means that git stash is somewhat verbose in this mode even when the -q flag is passed in. This was always the case since "git stash save -p" was introduced in dda1f2a5 ("Implement 'git stash save --patch'", 2009-08-13). Properly pass the -q flag on to git reset, to make "git stash push -p -q" as quiet as it should be. Signed-off-by: Thomas Gummerer --- git-stash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-stash.sh b/git-stash.sh index 59f055e27b..c58f98f1d6 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -322,7 +322,7 @@ push_stash () { if test "$keep_index" != "t" then - git reset + git reset ${GIT_QUIET:+-q} fi fi } -- 2.12.0.483.gad4152297