Re: [PATCH 2/3] unpack-trees: allow pruning with pathspec
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Aug 30, 2011, 13:03 UTC
- Message-ID
- <CACsJy8CBJEimG5am8+aWTGP7kzuZ79WfZ3KQKh7pyjKTx-mR9A@mail.gmail.com>
- In-Reply-To
- <1314653603-7533-3-git-send-email-gitster@pobox.com>
On Tue, Aug 30, 2011 at 4:33 AM, Junio C Hamano <gitster@pobox.com> wrote:
> and this codepath probably should not be enabled while running a merge
But do you think if it works with merge (ie. a partial merge)?
There's probably no interest in partial merge now, but if narrow clone comes, index will be also narrowed and at least fast-forward merge should work. I think it may work, but I'm not sure. unpack_callback() and traverse_trees() look like magic to me. There may be some interactions between index and unpacked trees that make partial merge fail in a subtle way.
-- Duy