git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* "show" in git-stash(1)
@ 2019-09-02  7:01 Ulrich Windl
  0 siblings, 0 replies; only message in thread
From: Ulrich Windl @ 2019-09-02  7:01 UTC (permalink / raw)
  To: git

Hi!

Reading the (somewhat older) manual page GIT-STASH(1)  for "show" I found:

       show [<stash>]
           Show the changes recorded in the stash as a diff between the
           stashed state and its original parent. When no <stash> is given,
           shows the latest one. By default, the command shows the diffstat,
           but it will accept any format known to git diff (e.g., git stash
           show -p stash@{1} to view the second most recent stash in patch
           form). You can use stash.showStat and/or stash.showPatch config
           variables to change the default behavior.

The syntax summary suggested that there are no further "interesting options", but somewhat later googling for "git diff against a stash" (a very frequently asked question, BTW) showed that a diff output is enabled if there are diff options like "-u". Agreed, it is explained further down in the text, but users reading manual pages "efficiently" may miss that ;-)

Why not change the syntax to something like
"show [diff-option]... [<stash>]
?

Regards,#
Ulrich



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-02  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-02  7:01 "show" in git-stash(1) Ulrich Windl

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).