Re: [PATCH 22/25] diff.c: color moved lines differently

2017-06-30 Thread Junio C Hamano
Stefan Beller writes: > On Fri, Jun 30, 2017 at 10:54 AM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> +static int next_byte(const char **cp, const char **endp, >>> + const struct diff_options *diffopt) >>> +{ >>> + int retval; >>> + >>> + if (DIFF_XDL_TST(diff

Re: [PATCH 22/25] diff.c: color moved lines differently

2017-06-30 Thread Stefan Beller
On Fri, Jun 30, 2017 at 10:54 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> +static int next_byte(const char **cp, const char **endp, >> + const struct diff_options *diffopt) >> +{ >> + int retval; >> + >> + if (DIFF_XDL_TST(diffopt, IGNORE_WHITESPACE_AT_EOL)) {

Re: [PATCH 22/25] diff.c: color moved lines differently

2017-06-30 Thread Junio C Hamano
Stefan Beller writes: > +static int next_byte(const char **cp, const char **endp, > + const struct diff_options *diffopt) > +{ > + int retval; > + > + if (DIFF_XDL_TST(diffopt, IGNORE_WHITESPACE_AT_EOL)) { > + while (*endp > *cp && isspace(**endp)) > +

[PATCH 22/25] diff.c: color moved lines differently

2017-06-29 Thread Stefan Beller
When a patch consists mostly of moving blocks of code around, it can be quite tedious to ensure that the blocks are moved verbatim, and not undesirably modified in the move. To that end, color blocks that are moved within the same patch differently. For example (OM, del, add, and NM are different c