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

Re: [PATCH 1/1] git-stash.txt: correct "git stash" behavior with no arguments

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
Oct 11, 2017, 19:09 UTC
Message-ID
<20171011190935.GA15399@hank>
In-Reply-To
<20171011183718.2404-1-aiueogawa217@gmail.com>
On 10/12, Takahito Ogawa wrote:
Show 6 quoted lines
> "git stash" behavior without any arguments was changed in
> 1ada5020b ("stash: use stash_push for no verb form", 2017-02-28).
> This is equivalent to "git stash push" but documents says
> "git stash save".
> 
> Correct it.

Thanks for fixing this! I recently sent a patch that would advertise git stash push more in general, which would also fix this occurrence [1], but it didn't seem like it got much interest. However this is obviously correct, and should definitely be fixed, while the other places can still mention 'git stash save'.

For what it's worth this is
Reviewed-by: Thomas Gummerer <t.gummerer@gmail.com>
Show 21 quoted lines
> Signed-off-by: Takahito Ogawa <aiueogawa217@gmail.com>
> ---
>  Documentation/git-stash.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
> index 00f95fee1..63642c145 100644
> --- a/Documentation/git-stash.txt
> +++ b/Documentation/git-stash.txt
> @@ -33,7 +33,7 @@ and reverts the working directory to match the `HEAD` commit.
>  The modifications stashed away by this command can be listed with
>  `git stash list`, inspected with `git stash show`, and restored
>  (potentially on top of a different commit) with `git stash apply`.
> -Calling `git stash` without any arguments is equivalent to `git stash save`.
> +Calling `git stash` without any arguments is equivalent to `git stash push`.
>  A stash is by default listed as "WIP on 'branchname' ...", but
>  you can give a more descriptive message on the command line when
>  you create one.
> -- 
> 2.13.1
> 
Previous: Takahito OgawaNext: Thomas Gummerer
Message 6 of 8 in “Fix a typo in line 117 of git-gui/lib/sshkeys.tcl.”
  1. Fix a typo in line 117 of git-gui/lib/sshkeys.tcl.Dejan Ribič, Oct 30, 2011
  2. Erik Faye-LundOct 30, 2011
  3. Pat ThoytsOct 31, 2011
  4. 1/1 git-stash.txt: correct "git stash" behavior with no argumentsTakahito Ogawa, Oct 11, 2017
  5. 1/1 git-stash.txt: correct "git stash" behavior with no argumentsTakahito Ogawa, Oct 11, 2017
  6. Thomas GummererOct 11, 2017
  7. Thomas GummererOct 11, 2017
  8. 1/1 git-stash.txt: correct "git stash" behavior with no argumentsTakahito Ogawa, Oct 11, 2017

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.