From: Thomas Rast Date: Wed, 14 Mar 2012 18:24:08 +0000 (+0100) Subject: diff: refactor the word-diff setup from builtin_diff_cmd X-Git-Tag: v1.7.10.1~17^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/77d1a520fb5b8ad8cc86228023f16a44b75c05d1?hp=77d1a520fb5b8ad8cc86228023f16a44b75c05d1 diff: refactor the word-diff setup from builtin_diff_cmd Quite a chunk of builtin_diff_cmd deals with word-diff setup, defaults and such. This makes the function a bit hard to read, but is also asymmetric because the corresponding teardown lives in free_diff_words_data already. Refactor into a new function init_diff_words_data. For simplicity, also shuffle around some functions it depends on. Signed-off-by: Thomas Rast Signed-off-by: Junio C Hamano ---