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

Re: "git stash" is not known to git

From
Jeff King <peff@peff.net>
Date
Jul 30, 2007, 10:06 UTC
Message-ID
<20070730100609.GB8829@coredump.intra.peff.net>
In-Reply-To
<863az6uscz.fsf@lola.quinscape.zz>
On Mon, Jul 30, 2007 at 11:57:00AM +0200, David Kastrup wrote:
Show 14 quoted lines
> > This looks like an incorrect installation, with git-stash in your
> > $PATH, but not in the place git looks for its commands (I don't
> > remember the exact mechanism).
> 
> I don't think so: in git.c we have at lines 362ff
> 
>                 { "show-branch", cmd_show_branch, RUN_SETUP },
>                 { "show", cmd_show, RUN_SETUP | USE_PAGER },
>                 { "stripspace", cmd_stripspace },
>                 { "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
> 
> So it really seems like stash is not known to git.c.  Of course, I
> have no real clue about git.c's operation (or I'd have proferred a
> patch) and not right now the time to look further.

That list is for builtins; git-stash is an external shell script. See execv_git_cmd for the list of places where it is looking for git-stash.

Since I seem to recall you working some symlink magic with your installation in a recent message, that might be related. Is it just git-stash, or are other scripts failing (try "git status")?

-Peff
Previous: David KastrupNext: David Kastrup
Message 4 of 14 in “"git stash" is not known to git”
  1. David KastrupJul 30, 2007
  2. Matthieu MoyJul 30, 2007
  3. David KastrupJul 30, 2007
  4. Jeff KingJul 30, 2007
  5. David KastrupJul 30, 2007
  6. Jeff KingJul 30, 2007
  7. David KastrupJul 30, 2007
  8. Jeff KingJul 30, 2007
  9. David KastrupJul 30, 2007
  10. Jeff KingJul 30, 2007
  11. Junio C HamanoJul 30, 2007
  12. Junio C HamanoJul 31, 2007
  13. Jeff KingJul 31, 2007
  14. Junio C HamanoJul 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.