Re: [RFC] use typechange as rename source
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> diff --git a/diffcore-break.c b/diffcore-break.c
> index c71a226..69afc07 100644
> --- a/diffcore-break.c
> +++ b/diffcore-break.c
> @@ -52,8 +52,8 @@ static int should_break(struct diff_filespec *src,
> * is the default.
> */
>
> - if (!S_ISREG(src->mode) || !S_ISREG(dst->mode))
> - return 0; /* leave symlink rename alone */
> + if (object_type(src->mode) != object_type(dst->mode))
> + return 1; /* even their types are different */
Oops, this part is wrong. It should be checking ISREG and stuff.