convert refresh_index to take struct pathspec
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
17ddc66e70
commit
9b2d61499b
@ -314,7 +314,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD, prefix, argv);
|
||||
refresh_index(&the_index, REFRESH_QUIET, pathspec.raw, NULL, NULL);
|
||||
refresh_index(&the_index, REFRESH_QUIET, &pathspec, NULL, NULL);
|
||||
|
||||
seen = NULL;
|
||||
seen = xcalloc(pathspec.nr, 1);
|
||||
|
Reference in New Issue
Block a user