Re: [PATCH 10/45] parse_pathspec: support stripping submodule trailing slashes

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

 



On Sun, Jun 9, 2013 at 2:25 AM, Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> wrote:
> This flag is equivalent to builtin/ls-files.c:strip_trailing_slashes()
> and is intended to replace that function when ls-files is converted to
> use parse_pathspec.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx>
> ---
> diff --git a/pathspec.h b/pathspec.h
> index aa98597..7935b26 100644
> --- a/pathspec.h
> +++ b/pathspec.h
> @@ -31,6 +31,8 @@ struct pathspec {
>  #define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
>  #define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
>  #define PATHSPEC_MAXDEPTH_VALID (1<<2) /* max_depth field is valid */
> +/* stripping the trailing slash if the given path is a gitlink */

s/stripping/strip/

> +#define PATHSPEC_STRIP_SUBMODULE_SLASH_CHEAP (1<<3)
>
>  extern int init_pathspec(struct pathspec *, const char **);
>  extern void parse_pathspec(struct pathspec *pathspec,
--
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]