repack: stop using magic number for ARRAY_SIZE(exts)
authorJeff King <redacted>
Sat, 21 Dec 2013 14:00:19 +0000 (09:00 -0500)
committerJunio C Hamano <redacted>
Mon, 30 Dec 2013 20:19:23 +0000 (12:19 -0800)
commitb328c2166e67a0391a776d075acdfbd74e122e5c
treead406421714075e274f8b06017250062f3c183ed
parent7cc8f9710857ed69d34c696330f7fd0367a5a29c
repack: stop using magic number for ARRAY_SIZE(exts)

We have a static array of extensions, but hardcode the size
of the array in our loops. Let's pull out this magic number,
which will make it easier to change.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/repack.c
git clone https://git.99rst.org/PROJECT