threads / patch / 48747

patchgit-stash.txt: document show options

Subject: [PATCH] git-stash.txt: document show options

## tl;dr

2 messages between Jun 21, 2018 and Jun 21, 2018. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Mike Frysinger· Jun 21, 2018, 00:56 UTC · lore
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Documentation/git-stash.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Show changes to Documentation/git-stash.txt +4 −1
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index 7ef8c4791177..76e4ca788102 100644
--- a/Documentation/git-stash.txt
+++ b/Documentation/git-stash.txt
@@ -106,7 +106,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
 The command takes options applicable to the 'git log'
 command to control what is shown and how. See linkgit:git-log[1].
 
-show [<stash>]::
+show [<options>] [<stash>]::
 
 	Show the changes recorded in the stash entry as a diff between the
 	stashed contents and the commit back when the stash entry was first
@@ -116,6 +116,9 @@ show [<stash>]::
 	to view the second most recent entry in patch form).
 	You can use stash.showStat and/or stash.showPatch config variables
 	to change the default behavior.
++
+The command takes options applicable to the 'git diff'
+command to control what is shown and how. See linkgit:git-diff[1].
 
 pop [--index] [-q|--quiet] [<stash>]::
 
-- 
2.17.1
Johannes Schindelin· Jun 21, 2018, 06:21 UTC · re: Mike Frysinger · lore

Re: [PATCH] git-stash.txt: document show options

Hi Mike,

there is a GSoC project going on to make `git stash` a builtin, and I think that this change makes sense and at the same time needs to be coordinated with Paul, who is performing that builtin work, so I Cc:ed him for visibility.

Ciao, Johannes

On Wed, 20 Jun 2018, Mike Frysinger wrote:
Show 32 quoted lines
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  Documentation/git-stash.txt | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
> index 7ef8c4791177..76e4ca788102 100644
> --- a/Documentation/git-stash.txt
> +++ b/Documentation/git-stash.txt
> @@ -106,7 +106,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
>  The command takes options applicable to the 'git log'
>  command to control what is shown and how. See linkgit:git-log[1].
>  
> -show [<stash>]::
> +show [<options>] [<stash>]::
>  
>  	Show the changes recorded in the stash entry as a diff between the
>  	stashed contents and the commit back when the stash entry was first
> @@ -116,6 +116,9 @@ show [<stash>]::
>  	to view the second most recent entry in patch form).
>  	You can use stash.showStat and/or stash.showPatch config variables
>  	to change the default behavior.
> ++
> +The command takes options applicable to the 'git diff'
> +command to control what is shown and how. See linkgit:git-diff[1].
>  
>  pop [--index] [-q|--quiet] [<stash>]::
>  
> -- 
> 2.17.1
> 
> 

← back to recent threads