X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=6aae09a22e54a7b9291ed1b6acf79529c6029a49;hb=801cfae8fd683761ae268cab8cec08e4b0f5a35b;hp=c91ebfb46f929f926e1925c2db830c5847f3223b;hpb=062868cc003d5952f11c7c9cd3940ae7d675960a;p=git.git diff --git a/dir.c b/dir.c index c91ebfb46..6aae09a22 100644 --- a/dir.c +++ b/dir.c @@ -53,7 +53,7 @@ int common_prefix(const char **pathspec) } /* - * Does 'match' matches the given name? + * Does 'match' match the given name? * A match is found if * * (1) the 'match' string is leading directory of 'name', or @@ -156,7 +156,7 @@ void add_exclude(const char *string, const char *base, if (len && string[len - 1] == '/') { char *s; x = xmalloc(sizeof(*x) + len); - s = (char*)(x+1); + s = (char *)(x+1); memcpy(s, string, len - 1); s[len - 1] = '\0'; string = s; @@ -290,7 +290,7 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen) dir->basebuf[baselen] = '\0'; } -/* Scan the list and let the last match determines the fate. +/* Scan the list and let the last match determine the fate. * Return 1 for exclude, 0 for include and -1 for undecided. */ static int excluded_1(const char *pathname,