Re: [PATCH 02/19] diff: move line ending check into emit_hunk_header

2017-05-15 Thread Stefan Beller
On Sun, May 14, 2017 at 11:48 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> In a later patch, I want to propose an option to detect&color >> moved lines in a diff, which cannot be done in a one-pass over >> the diff. Instead we need to go over the whole diff twice, >> because we cannot d

Re: [PATCH 02/19] diff: move line ending check into emit_hunk_header

2017-05-14 Thread Junio C Hamano
Stefan Beller writes: > In a later patch, I want to propose an option to detect&color > moved lines in a diff, which cannot be done in a one-pass over > the diff. Instead we need to go over the whole diff twice, > because we cannot detect the first line of the two corresponding > lines (+ and -)

[PATCH 02/19] diff: move line ending check into emit_hunk_header

2017-05-13 Thread Stefan Beller
In a later patch, I want to propose an option to detect&color moved lines in a diff, which cannot be done in a one-pass over the diff. Instead we need to go over the whole diff twice, because we cannot detect the first line of the two corresponding lines (+ and -) that got moved. So to prepare the