shallow.c: extend setup_*_shallow() to accept extra shallow commits