convert read_cache_preload() 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
78a951432d
commit
5ab2a2dabd
@ -262,7 +262,7 @@ static int checkout_paths(const struct checkout_opts *opts,
|
||||
lock_file = xcalloc(1, sizeof(struct lock_file));
|
||||
|
||||
newfd = hold_locked_index(lock_file, 1);
|
||||
if (read_cache_preload(opts->pathspec.raw) < 0)
|
||||
if (read_cache_preload(&opts->pathspec) < 0)
|
||||
return error(_("corrupt index file"));
|
||||
|
||||
if (opts->source_tree)
|
||||
|
Reference in New Issue
Block a user