match 449 attr.c static void debug_set(const char *what, const char *match, struct git_attr *attr, const void *v) match 461 attr.c what, attr->name, (char *) value, match); match 138 builtin/add.c pathspec->items[i].match); match 408 builtin/add.c const char *path = pathspec.items[i].match; match 2434 builtin/apply.c int match; match 2453 builtin/apply.c match = (tgtfix.len == fixed.len - fixstart && match 2462 builtin/apply.c if (!match) match 101 builtin/check-ignore.c full_path = pathspec.items[i].match; match 81 builtin/diff.c path = revs->prune_data.items[0].match; match 412 builtin/grep.c enum interesting match = entry_not_interesting; match 419 builtin/grep.c if (match != all_entries_interesting) { match 420 builtin/grep.c match = tree_entry_interesting(&entry, base, tn_len, pathspec); match 421 builtin/grep.c if (match == all_entries_not_interesting) match 423 builtin/grep.c if (match == entry_not_interesting) match 36 builtin/show-ref.c goto match; match 39 builtin/show-ref.c int match; match 41 builtin/show-ref.c match = heads_only && starts_with(refname, "refs/heads/"); match 42 builtin/show-ref.c match |= tags_only && starts_with(refname, "refs/tags/"); match 43 builtin/show-ref.c if (!match) match 56 builtin/show-ref.c goto match; match 61 builtin/show-ref.c goto match; match 66 builtin/show-ref.c match: match 109 builtin/show-ref.c static int exclude_existing(const char *match) match 113 builtin/show-ref.c int matchlen = match ? strlen(match) : 0; match 129 builtin/show-ref.c if (match) { match 133 builtin/show-ref.c if (strncmp(ref, match, matchlen)) match 48 color.c static int match_word(const char *word, int len, const char *match) match 50 color.c return !strncasecmp(word, match, len) && !match[len]; match 1084 compat/regex/regexec.c int match = 0; match 1133 compat/regex/regexec.c match = 1; match 1168 compat/regex/regexec.c || (match && !fl_longest_match) match 1191 compat/regex/regexec.c match = 1; match 332 date.c int match = match_string(date, month_names[i]); match 333 date.c if (match >= 3) { match 335 date.c return match; match 340 date.c int match = match_string(date, weekday_names[i]); match 341 date.c if (match >= 3) { match 343 date.c return match; match 348 date.c int match = match_string(date, timezone_names[i].name); match 349 date.c if (match >= 3 || match == strlen(timezone_names[i].name)) { match 359 date.c return match; match 528 date.c int match = match_multi_number(num, *end, date, end, tm, 0); match 529 date.c if (match) match 530 date.c return match; match 696 date.c int match = 0; match 704 date.c match = match_alpha(date, &tm, offset); match 706 date.c match = match_digit(date, &tm, offset, &tm_gmt); match 708 date.c match = match_tz(date, offset); match 710 date.c if (!match) { match 712 date.c match = 1; match 715 date.c date += match; match 948 date.c int match = match_string(date, month_names[i]); match 949 date.c if (match >= 3) { match 994 date.c int match = match_string(date, weekday_names[i]); match 995 date.c if (match >= 3) { match 1047 date.c int match = match_multi_number(number, *end, date, end, match 1049 date.c if (match) match 1050 date.c return date + match; match 944 diff.c regmatch_t match[1]; match 945 diff.c if (!regexec(word_regex, buffer->ptr + *begin, 1, match, 0)) { match 946 diff.c char *p = memchr(buffer->ptr + *begin + match[0].rm_so, match 947 diff.c '\n', match[0].rm_eo - match[0].rm_so); match 948 diff.c *end = p ? p - buffer->ptr : match[0].rm_eo + *begin; match 949 diff.c *begin += match[0].rm_so; match 161 dir.c char c = pathspec->items[n].match[i]; match 162 dir.c if (c != pathspec->items[0].match[i]) match 185 dir.c return len ? xmemdupz(pathspec->items[0].match, len) : NULL; match 237 dir.c const char *match = item->match + prefix; match 270 dir.c strncmp(item->match, name - prefix, item->prefix)) match 274 dir.c if (!*match) match 277 dir.c if (matchlen <= namelen && !ps_strncmp(item, match, name, matchlen)) { match 281 dir.c if (match[matchlen-1] == '/' || name[matchlen] == '/') match 284 dir.c match[matchlen - 1] == '/' && match 286 dir.c !ps_strncmp(item, match, name, namelen)) match 290 dir.c !git_fnmatch(item, match, name, match 441 dir.c int simple_length(const char *match) match 446 dir.c unsigned char c = *match++; match 1328 dir.c const char *match = simplify->path; match 1331 dir.c if (!match) match 1335 dir.c if (!memcmp(path, match, len)) match 1772 dir.c const char *match; match 1774 dir.c match = *pathspec++; match 1775 dir.c if (!match) match 1777 dir.c simplify[nr].path = match; match 1778 dir.c simplify[nr].len = simple_length(match); match 208 dir.h extern int simple_length(const char *match); match 339 grep.c regmatch_t *match, int eflags) match 352 grep.c match->rm_so = ovector[0]; match 353 grep.c match->rm_eo = ovector[1]; match 371 grep.c regmatch_t *match, int eflags) match 837 grep.c regmatch_t *match) match 842 grep.c match->rm_so = match->rm_eo = -1; match 845 grep.c match->rm_so = offset; match 846 grep.c match->rm_eo = match->rm_so + kwsm.size[0]; match 852 grep.c regmatch_t *match, int eflags) match 855 grep.c match->rm_so = 0; match 856 grep.c match->rm_eo = eol - line; match 859 grep.c return regexec(preg, line, 1, match, eflags); match 863 grep.c regmatch_t *match, int eflags) match 868 grep.c hit = !fixmatch(p, line, eol, match); match 870 grep.c hit = !pcrematch(p, line, eol, match, eflags); match 872 grep.c hit = !regmatch(&p->regexp, line, eol, match, eflags); match 989 grep.c regmatch_t match; match 998 grep.c h = match_one_pattern(x->u.atom, bol, eol, ctx, &match, 0); match 1037 grep.c regmatch_t match; match 1044 grep.c if (match_one_pattern(p, bol, eol, ctx, &match, 0)) match 1054 grep.c regmatch_t match; match 1056 grep.c if (!match_one_pattern(p, bol, eol, ctx, &match, eflags)) match 1058 grep.c if (match.rm_so < 0 || match.rm_eo < 0) match 1061 grep.c if (match.rm_so > pmatch->rm_so) match 1063 grep.c if (match.rm_so == pmatch->rm_so && match.rm_eo < pmatch->rm_eo) match 1066 grep.c pmatch->rm_so = match.rm_so; match 1067 grep.c pmatch->rm_eo = match.rm_eo; match 1132 grep.c regmatch_t match; match 1148 grep.c while (next_match(opt, bol, eol, ctx, &match, eflags)) { match 1149 grep.c if (match.rm_so == match.rm_eo) match 1152 grep.c output_color(opt, bol, match.rm_so, line_color); match 1153 grep.c output_color(opt, bol + match.rm_so, match 1154 grep.c match.rm_eo - match.rm_so, match_color); match 1155 grep.c bol += match.rm_eo; match 1156 grep.c rest -= match.rm_eo; match 1605 http-push.c int match; match 1613 http-push.c for (match = 0; refs; refs = refs->next) { match 1621 http-push.c match++; match 1624 http-push.c if (match == 0) match 1626 http-push.c if (match != 1) match 611 kwset.c goto match; match 667 kwset.c goto match; match 671 kwset.c match: match 720 kwset.c goto match; match 30 line-range.c regmatch_t match[1]; match 95 line-range.c !(reg_error = regexec(®exp, line, 1, match, 0))) { match 96 line-range.c const char *cp = line + match[0].rm_so; match 137 line-range.c regmatch_t match[1]; match 140 line-range.c reg_error = regexec(regexp, start, 1, match, 0); match 149 line-range.c bol = start+match[0].rm_so; match 150 line-range.c eol = start+match[0].rm_eo; match 74 list-objects.c enum interesting match = revs->diffopt.pathspec.nr == 0 ? match 95 list-objects.c if (!match) { match 104 list-objects.c if (match != all_entries_interesting) { match 105 list-objects.c match = tree_entry_interesting(&entry, base, 0, match 107 list-objects.c if (match == all_entries_not_interesting) match 109 list-objects.c if (match == entry_not_interesting) match 200 notes-merge.c int match; match 210 notes-merge.c mp = find_notes_merge_pair_pos(changes, len, obj, 0, &match); match 211 notes-merge.c if (!match) { match 116 pathspec.c char *match; match 233 pathspec.c match = xstrdup(copyfrom); match 236 pathspec.c match = xstrdup(copyfrom); match 239 pathspec.c match = prefix_path_gently(prefix, prefixlen, &prefixlen, copyfrom); match 240 pathspec.c if (!match) match 243 pathspec.c *raw = item->match = match; match 260 pathspec.c strbuf_addstr(&sb, match); match 264 pathspec.c item->len = strlen(item->match); match 268 pathspec.c (item->len >= 1 && item->match[item->len - 1] == '/') && match 269 pathspec.c (i = cache_name_pos(item->match, item->len - 1)) >= 0 && match 272 pathspec.c match[item->len] = '\0'; match 283 pathspec.c if (item->len <= ce_len || match[ce_len] != '/' || match 284 pathspec.c memcmp(ce->name, match, ce_len)) match 289 pathspec.c match[item->len] = '\0'; match 298 pathspec.c item->nowildcard_len = simple_length(item->match); match 310 pathspec.c item->match[item->nowildcard_len] == '*' && match 311 pathspec.c no_wildcard(item->match + item->nowildcard_len + 1)) match 327 pathspec.c return strcmp(a->match, b->match); match 393 pathspec.c item->match = prefix; match 431 pathspec.c has_symlink_leading_path(item[i].match, item[i].len)) { match 29 pathspec.h const char *match; match 162 read-cache.c int match = -1; match 168 read-cache.c match = hashcmp(sha1, ce->sha1); match 171 read-cache.c return match; match 176 read-cache.c int match = -1; match 188 read-cache.c match = memcmp(buffer, sb.buf, size); match 192 read-cache.c return match; match 4503 refs.c const char *match = hide_refs->items[i].string; match 4507 refs.c if (*match == '!') { match 4509 refs.c match++; match 4512 refs.c if (!starts_with(refname, match)) match 4514 refs.c len = strlen(match); match 1055 remote.c int match = 0; match 1057 remote.c for (weak_match = match = 0; refs; refs = refs->next) { match 1088 remote.c match++; match 1099 remote.c return match; match 1119 remote.c struct ref **match) match 1124 remote.c if (match) match 1125 remote.c *match = alloc_delete_ref(); match 1132 remote.c if (match) { match 1133 remote.c *match = alloc_ref(name); match 1134 remote.c hashcpy((*match)->new_sha1, sha1); match 1169 remote.c struct ref **match, match 1172 remote.c switch (count_refspec_match(rs->src, src, match)) { match 1182 remote.c if (try_explicit_object_name(rs->src, match) < 0) match 1288 remote.c int match; match 1290 remote.c match = match_name_with_pattern(rs[i].src, ref->name, dst_side, &name); match 1292 remote.c match = match_name_with_pattern(dst_side, ref->name, rs[i].src, &name); match 1293 remote.c if (match) { match 923 sha1_name.c const char *match = NULL, *target = NULL; match 926 sha1_name.c if (skip_prefix(message, "checkout: moving from ", &match)) match 927 sha1_name.c target = strstr(match, " to "); match 929 sha1_name.c if (!match || !target) match 932 sha1_name.c len = target - match; match 934 sha1_name.c strbuf_add(&cb->buf, match, len); match 290 tree-diff.c enum interesting match; match 293 tree-diff.c match = tree_entry_interesting(&t->entry, base, 0, &opt->pathspec); match 294 tree-diff.c if (match) { match 295 tree-diff.c if (match == all_entries_not_interesting) match 604 tree-diff.c diff_opts.single_follow = opt->pathspec.items[0].match; match 623 tree-diff.c !strcmp(p->two->path, opt->pathspec.items[0].match)) { match 689 tree-walk.c const char *match, int matchlen, match 715 tree-walk.c m = strncmp(match, entry->path, match 740 tree-walk.c if (match[pathlen] != '/') match 751 tree-walk.c m = ps_strncmp(item, match, entry->path, pathlen); match 773 tree-walk.c const char *base, const char *match, int len) match 777 tree-walk.c ret = strncmp(base, match, n); match 781 tree-walk.c match += n; match 784 tree-walk.c return ps_strncmp(item, base, match, len); match 789 tree-walk.c const char *match, int matchlen) match 791 tree-walk.c if (basecmp(item, base, match, matchlen)) match 800 tree-walk.c match[matchlen - 1] == '/') match 816 tree-walk.c const char *match = item->match; match 828 tree-walk.c return !basecmp(item, base, match, matchlen); match 832 tree-walk.c while (dirlen && match[dirlen - 1] != '/') match 841 tree-walk.c if (basecmp(item, base, match, baselen)) match 894 tree-walk.c const char *match = item->match; match 904 tree-walk.c if (!match_dir_prefix(item, base_str, match, matchlen)) match 920 tree-walk.c if (baselen == 0 || !basecmp(item, base_str, match, baselen)) { match 922 tree-walk.c match + baselen, matchlen - baselen, match 927 tree-walk.c if (!git_fnmatch(item, match + baselen, entry->path, match 968 tree-walk.c if (!git_fnmatch(item, match, base->buf + base_offset, match 147 tree.c int read_tree(struct tree *tree, int stage, struct pathspec *match) match 175 tree.c err = read_tree_recursive(tree, "", 0, stage, match, fn, NULL); match 246 xdiff/xpatience.c match(map, next1 - 1, next2 - 1)) { match 255 xdiff/xpatience.c match(map, line1, line2)) {