git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"show" in git-stash(1)

From
UWUlrich Windl <ulrich.windl@rz.uni-regensburg.de>
Date
Sep 2, 2019, 07:01 UTC
Message-ID
<5D6CBE49020000A100033415@gwsmtp.uni-regensburg.de>
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

Message 1 of 1 in “"show" in git-stash(1)”
  1. Ulrich WindlSep 2, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.