Re: Using a different index and HEAD
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 13, 2010, 17:25 UTC
- Message-ID
- <m3aaldf863.fsf@localhost.localdomain>
- In-Reply-To
- <20101113152906.GA24903@nibiru.local>
Enrico Weigelt <weigelt@metux.de> writes:
Show 6 quoted lines
> I'm currently thinking about an IDE toolkit entirely based on git, > which eg. versions every single file save operation (so, IOW: an > separately versioned workdir) automatically and later allows to > rebase/rework this to tell what really gets committed to the > actual working branch. For this multiple indices and refs/HEAD > pointers would be very helpful.
UGFWIWNI (Using Git For What It Was Not Intended) ;-) ?
> > Is there already a way to tell other locations for index file > and current HEAD symref on command line (just like we have w/ > --work-dir etc) ?
There is GIT_INDEX_FILE environment variable (see git(1) manpage); you can maniplate symrefs such as HEAD directly using git-symbolic-ref (and git-show-ref, git-rev-parse, etc.).
You can also check 'contrib/workdir/git-new-workdir' script.
-- Jakub Narebski Poland ShadeHawk on #git