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

Re: Problem with --work-tree

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 17, 2008, 05:24 UTC
Message-ID
<fcaeb9bf0808162224u2d337878vb1dfef09a6b48a16@mail.gmail.com>
In-Reply-To
<48A74325.1040805@school9.perm.ru>
On 8/17/08, Сергей Шарыбин <nazgul@school9.perm.ru> wrote:
Show 14 quoted lines
> Hi,
>
>  I've got the following problem. I've got a GIT repo at
> /home/nazgul/src/test-work-tree and I've got some changed
> files in this repo. I want to see this changes when a `git` runs outside
> this directory. I tried to run `git
> --git-dir=/home/nazgul/src/test-work-tree/.git
> --work-tree=/home/nazgul/src/test-work-tree diff-index
> --name-status HEAD` from my home directory. In such way diff-index tells me
> that all files from my repo has been deleted. I think it is because this
> command does not understand a --work-tree parameter. And I saw the same
> problem with a git diff command (something like that: git
> --git-dir=/home/nazgul/src/test-work-tree/.git
> --work-tree=/home/nazgul/src/test-work-tree diff).
I think it's a bug. For now use "git status" instead.
-- 
Duy
Previous: Сергей ШарыбинNext: Michael J Gruber
Message 2 of 3 in “Problem with --work-tree”
  1. Сергей ШарыбинAug 16, 2008
  2. Nguyen Thai Ngoc DuyAug 17, 2008
  3. Michael J GruberAug 18, 2008

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.