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

Re: [PATCH] git-stash: don't complain when listing in a repo with no stash

From
しらいしななこ <nanako3@bluebottle.com>
Date
Jul 2, 2007, 05:02 UTC
Message-ID
<200707020503.l6253NPQ020362@mi0.bluebottle.com>
In-Reply-To
<20070702042124.GA29479@coredump.intra.peff.net>
Quoting Jeff King <peff@peff.net>:
Show 15 quoted lines
> Previously, the git-log invocation would complain if a repo
> had not had any stashes created in it yet:
>
> $ git-init
> $ git-stash
> fatal: ambiguous argument 'refs/stash': unknown revision or
>   path not in the working tree.
> Use '--' to separate paths from revisions
>
> Instead, we only call git-log if we actually have a
> refs/stash. We could alternatively create the ref when any
> stash command is called, but it's better for the 'list'
> command to not require write access to the repo.
>
> Signed-off-by: Jeff King <peff@peff.net>
Thank you for correcting the bugs I introduced.
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/

----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com
Previous: Jeff King
Message 2 of 2 in “git-stash: don't complain when listing in a repo with no stash”
  1. git-stash: don't complain when listing in a repo with no stashJeff King, Jul 2, 2007
  2. しらいしななこJul 2, 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.