Re: [PATCH] apply --index-info: fall back to current index for mode changes
On Mon, Sep 17, 2007 at 01:24:57AM +0100, Johannes Schindelin wrote:
Show 14 quoted lines
>
> "git diff" does not record index lines for pure mode changes (i.e. no
> lines changed). Therefore, apply --index-info would call out a bogus
> error.
>
> Instead, fall back to reading the info from the current index.
>
> Incidentally, this fixes an error where git-rebase would not rebase a
> commit including a pure mode change, and changes requiring a threeway
> merge.
>
> Noticed by Chris Shoemaker.
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Works for me. Thanks.
Acked-by: Chris Shoemaker <chris.shoemaker@cox.net>