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

Re: [PATCH] git-stash: Display help message if git-stash is run without sub-commands

From
David Kastrup <dak@gnu.org>
Date
Nov 30, 2007, 20:11 UTC
Message-ID
<85mysvwl25.fsf@lola.goethe.zz>
In-Reply-To
<7vr6i7qz6b.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> "Kevin Leung" <kevinlsk@gmail.com> writes:
>
>> On Nov 30, 2007 4:41 PM, Mike Hommey <mh@glandium.org> wrote:
>>> Still, 'git stash' alone should *do* the stash.
>>>
>>
>> How about `git stash' still does the stash, and `git stash llist'
>> exits with usage message? And if you want to save the stash with name,
>> you can only do it with `git stash save name_of_stash'.
>
> Sounds like a sensible thing to do.

Instead of "save", one could use "stash" since that is what it is supposed to do. Then

git stash stash stash
would create a stash called "stash".
-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Junio C HamanoNext: Johannes Schindelin
Message 6 of 7 in “git-stash: Display help message if git-stash is run without sub-commands”
  1. git-stash: Display help message if git-stash is run without sub-commandsKevin Leung, Nov 30, 2007
  2. Mike HommeyNov 30, 2007
  3. Kevin LeungNov 30, 2007
  4. Wincent ColaiutaNov 30, 2007
  5. Junio C HamanoNov 30, 2007
  6. David KastrupNov 30, 2007
  7. Johannes SchindelinNov 30, 2007

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.