builtin/apply: extract line_by_line_fuzzy_match() from match_fragment()
commit7a3eb9e2224d883df229fe4adce51e762165573a
authorChristian Couder <christian.couder@gmail.com>
Wed, 11 May 2016 13:16:16 +0000 (11 15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 May 2016 19:12:48 +0000 (12 12:12 -0700)
tree28b9284549fdc7482437cae59cbb98fc15640128
parentbb0ba9974314da72bba9a6200fa3bd61c4d9eab4
builtin/apply: extract line_by_line_fuzzy_match() from match_fragment()

The match_fragment() function is very big and contains a big special case
algorithm that does line by line fuzzy matching. So let's extract this
algorithm in a separate line_by_line_fuzzy_match() function.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c