git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Better handling of erroneous git stash save "somemessage" --keep-index
@ 2013-02-26 15:59 Gunnlaugur Thor Briem
  2013-02-26 16:10 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Gunnlaugur Thor Briem @ 2013-02-26 15:59 UTC (permalink / raw)
  To: git

Hi,

the command:

git stash save "some message" --keep-index

stashes everything, including the index, and adds the "--keep-index"
to the message. The manual labor of separating index hunks from hunks
to stash is lost. This is in version 1.8.1.3.

This is a user error, of course (per the man page, parameters are not
accepted after the message). But it would be better handled by
erroring out, with a message like "git stash save does not permit
parameters after the stash message".

Cheers,

Gulli

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-26 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26 15:59 Better handling of erroneous git stash save "somemessage" --keep-index Gunnlaugur Thor Briem
2013-02-26 16:10 ` Junio C Hamano
2013-02-26 16:21   ` Matthieu Moy
2013-02-26 17:00     ` Junio C Hamano
2013-02-26 16:46   ` Gunnlaugur Thor Briem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).