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