Re: rebase not honoring core.worktree pointing elsewhere
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 2, 2010, 01:21 UTC
- Message-ID
- <7v1v7434h8.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTi=ejRcnz+83zc2Z-6etUGMsBSw1FFUY0JNFRFGB@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> Then, yes, rebase should be updated to use worktree even if it's > outside cwd. I'm not sure how to do it properly in git-rebase.sh > though. The requirement "require_work_tree" can be loosen a bit.
require-work-tree traditionally meant "you must be inside the working tree, you could be in a subdirectory of it", but as long as the command is about the whole tree operation (which rebase is) and takes no pathname relative to the $(cwd) as an argument (which rebase does not), there is no strong reason why you should be _inside_ the working tree. For such commands, require-work-tree should mean "you must have a working tree, and make it known where it is to git", nothing more.