Re: [PATCH 6/8] archive: use index instead of parsing tree directly
Nguyễn Thái Ngọc Duy schrieb:
Show 7 quoted lines
> + /* It's not really pathspec, so match_pathspec can't be used */
> + for (path = args->pathspec;!match && *path;path++) {
> + for (str = ce->name, prefix = *path;*prefix && *str == *prefix; str++, prefix++)
> + ;
> + if (!*prefix && *str == '/')
> + match = 1;
> + }This works with, e.g.:
git archive HEAD Documentation
but not with:
git archive HEAD Makefile
or:
git archive HEAD Documentation/
René