color-words: refactor word splitting and use ALLOC_GROW()
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 17 Jan 2009 16:29:43 +0000 (17:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Jan 2009 18:42:19 +0000 (10:42 -0800)
commit23c1575f747393f9847874fd1ed72a44557459d1
tree9feb6b1a1de7c0c1639f601325f86eca555705af
parent07b57e90f7c852c4fe212ab1d91058f27469a74b
color-words: refactor word splitting and use ALLOC_GROW()

Word splitting is now performed by the function diff_words_fill(),
avoiding having the same code twice.

In the same spirit, avoid duplicating the code of ALLOC_GROW().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c