Re: [PATCH v2] stash: implement '--staged' option for 'push' and 'save'
- From
Sergey Organov <sorganov@gmail.com>
- Date
- Oct 15, 2021, 20:21 UTC
- Message-ID
- <87ee8mavk3.fsf@osv.gnss.ru>
- In-Reply-To
- <87lf2uavum.fsf@osv.gnss.ru>
Sergey Organov <sorganov@gmail.com> writes:
Show 20 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > >> Sergey Organov <sorganov@gmail.com> writes: >> >>>> but >>>> unlike the "stash -p" that goes interactive to let the user pick >>>> hunks, in which context "oh, no, you did not SELECT anything" makes >>>> perfect sense as an error message, this message would be confusing >>>> to users who weren't offered a chance to select. >>> >>> It seems to me that it makes sense to leave this warning as is, in case >>> the user invoked "stash --staged" without anything staged. I'm OK to >>> change this if you have something better in mind. >> >> I am not questioning the presense of the warning. It is just the >> phrasing of the warning---"You have nothing staged" would make a >> good message, but "You didn't select anything", when we do not offer >> them a chance to select in the first place, would not work well. > > Ah, I agree, your phrasing is much better, -- will fix.
Changed to "No staged changes" for the next re-roll. Looks OK?
Thanks, -- Sergey Organov