Code

builtin-merge.c: call exclude_cmds() correctly.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 26 Nov 2009 02:23:54 +0000 (21:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Nov 2009 02:49:11 +0000 (18:49 -0800)
commited87465658c83a5a1617920e7b605bd830a78aed
treedab8c5958dc5075182409f9385def978b7968b2b
parent78d553b7d7b269bb22ebd8b1198657c37484a3a0
builtin-merge.c: call exclude_cmds() correctly.

We need to call exclude_cmds() after the loop, not during the loop, because
excluding a command from the array can change the indexes of objects in the
array.  The result is that, depending on file ordering, some commands
weren't excluded as they should have been.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge.c