reset.c: pass pathspec around instead of (prefix, argv) pair