]> git.ipfire.org Git - thirdparty/git.git/commit
stash: don't show internal implementation details
authorThomas Gummerer <t.gummerer@gmail.com>
Tue, 21 Mar 2017 22:12:17 +0000 (22:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Mar 2017 21:55:11 +0000 (14:55 -0700)
commit1790f4fea04c2401feda0c96e35a3b50b1ba4fe3
treeb0444e7b4f67395d451894b7eea9a955111cdf42
parent9e140909f611fff720efc914b7186b8e4ab722cd
stash: don't show internal implementation details

git stash push uses other git commands internally.  Currently it only
passes the -q flag to those if the -q flag is passed to git stash.  when
using 'git stash push -p -q --no-keep-index', it doesn't even pass the
flag on to the internal reset at all.

It really is enough for the user to know that the stash is created,
without bothering them with the internal details of what's happening.
Always pass the -q flag to the internal git clean and git reset
commands, to avoid unnecessary and potentially confusing output.

Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
t/t3903-stash.sh