From: René Scharfe Date: Wed, 08 Apr 2009 20:39:51 GMT Subject: Re: [PATCH 6/8] archive: use index instead of parsing tree directly Message-ID: <49DD0B97.6040403@lsrfire.ath.cx> In-Reply-To: <1239185133-4181-7-git-send-email-pclouds@gmail.com> 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é