Code

apply: fix infinite loop with multiple patches with --index