From: Elijah Lynn <elijah@elijahlynn.net>
To: git@vger.kernel.org
Subject: [docs] git stash show also accepts -p|--patch option
Date: Mon, 20 Apr 2020 00:33:51 -0700 [thread overview]
Message-ID: <CAJ9KuXwmk377rEPVrwwpWmwzyO8N20OZUkUTBRoQoo3OuVYbGw@mail.gmail.com> (raw)
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
next reply other threads:[~2020-04-20 7:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 7:33 Elijah Lynn [this message]
2020-04-20 16:19 ` [docs] git stash show also accepts -p|--patch option Martin Ågren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ9KuXwmk377rEPVrwwpWmwzyO8N20OZUkUTBRoQoo3OuVYbGw@mail.gmail.com \
--to=elijah@elijahlynn.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).