author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Sat, 17 Jan 2009 16:29:43 +0000 (17:29 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 17 Jan 2009 18:42:19 +0000 (10:42 -0800) | ||
commit | 23c1575f747393f9847874fd1ed72a44557459d1 | |
tree | 9feb6b1a1de7c0c1639f601325f86eca555705af | tree | snapshot |
parent | 07b57e90f7c852c4fe212ab1d91058f27469a74b | commit | diff |
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>
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 | diff | blob | history |