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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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é
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]