Subject: Re: [PATCH 6/8] archive: use index instead of parsing tree directly

From: René Scharfe <[email-masked]>
Date: Wed, 08 Apr 2009 22:39:51 +0200

Nguyễn Thái Ngọc Duy schrieb:
> +		/* 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é