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

Re: tool and worktree

From
Jonas Fonseca <jonas.fonseca@gmail.com>
Date
Feb 8, 2009, 09:47 UTC
Message-ID
<2c6b72b30902080147u61412b04w24baa0e5fdc29584@mail.gmail.com>
In-Reply-To
<20090208034406.GB7230@b2j>
On Sun, Feb 8, 2009 at 04:44, bill lam <cbill.lam@gmail.com> wrote:
Show 13 quoted lines
> I track /etc using a config
>
> [core]
>        repositoryformatversion = 0
>        filemode = true
>        bare = false
>        worktree = /etc
>        logAllRefUpdates = true
>        excludesfile =
>
> But that can not be handled by tools,
>
> tig : status view said, The status view requires a working tree

Yes, on startup, tig checks git-rev-parse --is-inside-work-tree and disables things like the status view if it is false. I don't know how much work it would be to start using core.worktree. It might be as simple as setting the GIT_DIR environment to getcwd() + output of git-rev-parse --git-dir and then chdir() to core.worktree.

-- 
Jonas Fonseca
Previous: bill lamNext: Jonas Fonseca
Message 2 of 6 in “tool and worktree”
  1. bill lamFeb 8, 2009
  2. Jonas FonsecaFeb 8, 2009
  3. Jonas FonsecaFeb 9, 2009
  4. bill lamFeb 9, 2009
  5. Jonas FonsecaFeb 9, 2009
  6. Shawn O. PearceFeb 8, 2009

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.