From: Nguyen Thai Ngoc Duy Date: Sun, 10 Apr 2011 07:23:21 GMT Subject: Re: [PATCH 2/5] Replace has_wildcard with PATHSPEC_NOGLOB Message-ID: In-Reply-To: <7vbp0fylox.fsf@alter.siamese.dyndns.org> 2011/4/10 Junio C Hamano : >> +/* >> + * Magic pathspec >> + * >> + * NEEDSWORK: These need to be moved to dir.h or even to a new >> + * pathspec.h when we restructure get_pathspec() users to use the >> + * "struct pathspec" interface. >> + * >> + * Possible future magic semantics include stuff like: >> + * >> + *   { PATHSPEC_NOGLOB, '!', "noglob" }, >> + *   { PATHSPEC_RECURSIVE, '*', "recursive" }, >> + *   { PATHSPEC_REGEXP, '\0', "regexp" }, >> + * >> + */ > > Gaah, why did you butcher this to heve only the whole comment and struct > type declaration here, without moving the "Possible future magic" comment > that clearly belongs to the structure definition you still have in dir.c > to where it belongs?  Also if NOGLOB is no longer "Possible future", why > is it still here? Carelessness, I guess. Will move it (with the NOGLOB future line removed) to dir.c, close to get_pathspec(). -- Duy