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

Re: [PATCH 1/5] stash doc: add a warning about using create

From
Phil Hord <phil.hord@gmail.com>
Date
Jun 14, 2013, 12:27 UTC
Message-ID
<CABURp0rF2ESFmvf=UQcbKr6ybc0wmGY-_=Nc3yMQJ2jhZGUQJQ@mail.gmail.com>
In-Reply-To
<1371205924-8982-2-git-send-email-artagnon@gmail.com>

On Fri, Jun 14, 2013 at 6:32 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:

Show 27 quoted lines
> Add a note saying that the user probably wants "save" in the create
> description.  While at it, document that it can optionally take a
> message in the synopsis.
>
> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
> ---
>  Documentation/git-stash.txt | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
> index 711ffe1..83bb3db 100644
> --- a/Documentation/git-stash.txt
> +++ b/Documentation/git-stash.txt
> @@ -16,7 +16,7 @@ SYNOPSIS
>  'git stash' [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
>              [-u|--include-untracked] [-a|--all] [<message>]]
>  'git stash' clear
> -'git stash' create
> +'git stash' create [<message>]
>
>  DESCRIPTION
>  -----------
> @@ -151,6 +151,7 @@ create::
>
>         Create a stash (which is a regular commit object) and return its
>         object name, without storing it anywhere in the ref namespace.
> +       This is probably not what you want to use; see "save" above.
Thanks, this is helpful.
Maybe you can also hint why this command exists.
  +       This is intended to be useful for scripts.  It is probably not the
  +       command you want to use; see "save" above.
Show 10 quoted lines
>
>
>  DISCUSSION
> --
> 1.8.3.1.383.g0d5ad6b
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 3 of 13 in “Write a good 'git stash store' for autostash”
  1. 0/5 Write a good 'git stash store' for autostashRamkumar Ramachandra, Jun 14, 2013
  2. 1/5 stash doc: add a warning about using createRamkumar Ramachandra, Jun 14, 2013
  3. Phil HordJun 14, 2013
  4. Junio C HamanoJun 14, 2013
  5. 2/5 stash doc: document short form -p in synopsisRamkumar Ramachandra, Jun 14, 2013
  6. 3/5 stash: simplify option parser for createRamkumar Ramachandra, Jun 14, 2013
  7. 4/5 stash: introduce 'git stash store'Ramkumar Ramachandra, Jun 14, 2013
  8. Phil HordJun 14, 2013
  9. 5/5 rebase: use 'git stash store' to simplify logicRamkumar Ramachandra, Jun 14, 2013
  10. Phil HordJun 14, 2013
  11. Ramkumar RamachandraJun 14, 2013
  12. Junio C HamanoJun 14, 2013
  13. Ramkumar RamachandraJun 14, 2013

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.