git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [docs] git stash show also accepts -p|--patch option
@ 2020-04-20  7:33 Elijah Lynn
  2020-04-20 16:19 ` Martin Ågren
  0 siblings, 1 reply; 2+ messages in thread
From: Elijah Lynn @ 2020-04-20  7:33 UTC (permalink / raw)
  To: git

Was reading `git help stash`and noticed the --patch option says:

> This option is only valid for `push` and `save` commands.

But this isn't true, the `git stash show` command also accepts the
--patch command and is very useful as it shows the diff of the stash
whereas without --patch it just shows the filenames that changed. I
see this text in master too
https://github.com/git/git/blob/master/Documentation/git-stash.txt.

I can gladly submit a patch if this will be acceptable to update the
docs to state that -p|--patch is applicable to the `show` command as
well.

Elijah Lynn
www.elijahlynn.net

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

end of thread, other threads:[~2020-04-20 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  7:33 [docs] git stash show also accepts -p|--patch option Elijah Lynn
2020-04-20 16:19 ` Martin Ågren

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).