Code

diff: refactor the word-diff setup from builtin_diff_cmd
authorThomas Rast <trast@student.ethz.ch>
Wed, 14 Mar 2012 18:24:08 +0000 (19:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2012 21:40:15 +0000 (14:40 -0700)
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 <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

No differences found