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

Re: git stash doesn't honor --work-tree or GIT_WORK_TREE

From
Øystein Walle <oystwa@gmail.com>
Date
Dec 1, 2013, 19:12 UTC
Message-ID
<loom.20131201T200904-80@post.gmane.org>
In-Reply-To
<CACsJy8BFqqy8T1zwZd7Ly1-sAKGoxh0YfhFBgX6fBMTt_b5Dbw@mail.gmail.com>
Duy Nguyen <pclouds <at> gmail.com> writes:
> It should. At the beginning of cmd_rev_parse(), setup_git_directory()
> is called, which will check and follow all GIT_* or their command line
> equivalent. I'll look into this some time later.

I think I was wrong and rev-parse --is-inside-work-tree *does* honor them. It prints 'false'. If it hadn't honored them it would have printed "fatal: Not a git repository (...)".

Øsse
Previous: Junio C Hamano
Message 7 of 7 in “git stash doesn't honor --work-tree or GIT_WORK_TREE”
  1. Aaron BrooksNov 30, 2013
  2. Øystein WalleNov 30, 2013
  3. Thomas RastDec 1, 2013
  4. Duy NguyenDec 1, 2013
  5. Thomas RastDec 1, 2013
  6. Junio C HamanoDec 2, 2013
  7. Øystein WalleDec 1, 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.