From: Jeff King Date: Mon, 20 Mar 2017 18:42:51 GMT Subject: Re: [PATCH/RFC 1/3] stash: show less information for stash push -- Message-ID: <20170320184250.rkpgx4sl6zzqzelw@sigill.intra.peff.net> In-Reply-To: <20170319202351.8825-2-t.gummerer@gmail.com> On Sun, Mar 19, 2017 at 08:23:49PM +0000, Thomas Gummerer wrote: > When using git stash push -- in the following sequence: > > git init -q repo > cd repo > > for i in one two; do > echo content >$i > git add $i > done > git commit -qm base > > for i in one two; do > echo change >$i > done > git stash -- one > > it shows: > > Saved working directory and index state WIP on master: 20cfadf base > Unstaged changes after reset: > M one > M two > > Even though "one" no longer has unstaged changes. > > 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 git clean and git reset in the pathspec case, > to avoid unnecessary and potentially confusing output. Yeah, on further reflection, this is definitely the right thing to do. -Peff