eol 1063 builtin/apply.c const char *ptr, *eol; eol 1075 builtin/apply.c eol = strchrnul(line, '\n'); eol 1077 builtin/apply.c if (!ptr || eol < ptr) eol 1078 builtin/apply.c ptr = eol; eol 967 builtin/commit.c int i, eol; eol 974 builtin/commit.c eol = nl - sb->buf; eol 976 builtin/commit.c eol = sb->len; eol 978 builtin/commit.c if (strlen(sign_off_header) <= eol - i && eol 980 builtin/commit.c i = eol; eol 983 builtin/commit.c while (i < eol) eol 409 builtin/fast-export.c char *bol, *eol; eol 416 builtin/fast-export.c eol = strchrnul(bol, '\n'); eol 417 builtin/fast-export.c *eol = '\0'; eol 393 builtin/receive-pack.c const char *eol = strchrnul(line, '\n'); eol 395 builtin/receive-pack.c if ((msg + len <= eol) || line == eol) eol 397 builtin/receive-pack.c if (line + key_len < eol && eol 400 builtin/receive-pack.c return xmemdupz(line + offset, (eol - line) - offset); eol 402 builtin/receive-pack.c line = *eol ? eol + 1 : NULL; eol 1388 builtin/receive-pack.c const char *eol = memchr(boc, '\n', eoc - boc); eol 1389 builtin/receive-pack.c tail = queue_command(tail, boc, eol ? eol - boc : eoc - eol); eol 1390 builtin/receive-pack.c boc = eol ? eol + 1 : eoc; eol 104 builtin/reset.c const char *eol; eol 107 builtin/reset.c eol = strchr(body, '\n'); eol 108 builtin/reset.c len = eol ? eol - body : strlen(body); eol 39 builtin/shortlog.c const char *eol; eol 65 builtin/shortlog.c eol = strchr(oneline, '\n'); eol 66 builtin/shortlog.c if (!eol) eol 67 builtin/shortlog.c eol = oneline + strlen(oneline); eol 70 builtin/shortlog.c if (eob && (!eol || eob < eol)) eol 119 builtin/shortlog.c const char *eol = strchr(buffer, '\n'); eol 121 builtin/shortlog.c if (eol == NULL) eol 122 builtin/shortlog.c eol = buffer + strlen(buffer); eol 124 builtin/shortlog.c eol++; eol 128 builtin/shortlog.c buffer = eol; eol 184 builtin/tag.c char *buf, *sp, *eol; eol 207 builtin/tag.c eol = memchr(sp, '\n', size - (sp - buf)); eol 208 builtin/tag.c len = eol ? eol - sp : size - (sp - buf); eol 210 builtin/tag.c if (!eol) eol 212 builtin/tag.c sp = eol + 1; eol 411 commit.c const char *eol; eol 418 commit.c for (eol = p; *eol && *eol != '\n'; eol++) eol 421 commit.c eol = p; eol 425 commit.c return eol - p; eol 1117 commit.c const char *eol = strchrnul(bol, '\n'); eol 1118 commit.c int len = (eol - bol) + !!*eol; eol 1649 commit.c const char *eol = strchrnul(line, '\n'); eol 1651 commit.c if (line == eol) eol 1654 commit.c if (eol - line > key_len && eol 1657 commit.c *out_len = eol - line - key_len - 1; eol 1660 commit.c line = *eol ? eol + 1 : NULL; eol 380 contrib/examples/builtin-fetch--tool.c const char *eol; eol 387 contrib/examples/builtin-fetch--tool.c eol = !next ? (ls + strlen(ls)) : next; eol 388 contrib/examples/builtin-fetch--tool.c if (!memcmp("^{}", eol-3, 3)) eol 390 contrib/examples/builtin-fetch--tool.c if (eol - ls < 40) eol 395 contrib/examples/builtin-fetch--tool.c while (ls < eol && isspace(*ls)) eol 400 contrib/examples/builtin-fetch--tool.c if ((eol - ls) <= matchlen || eol 405 contrib/examples/builtin-fetch--tool.c namelen = eol - ls; eol 98 convert.c static enum eol output_eol(enum crlf_action crlf_action) eol 677 convert.c static enum eol git_path_check_eol(const char *path, struct git_attr_check *check) eol 711 convert.c static enum crlf_action input_crlf_action(enum crlf_action text_attr, enum eol eol_attr) eol 725 convert.c enum eol eol_attr; eol 34 convert.h extern enum eol core_eol; eol 298 daemon.c char *eol; eol 343 daemon.c eol = strchr(buf.buf, '\n'); eol 344 daemon.c if (eol) eol 345 daemon.c *eol = '\0'; eol 52 environment.c enum eol core_eol = EOL_UNSET; eol 690 fsck.c char *to_free = NULL, *eol; eol 732 fsck.c eol = strchr(buffer, '\n'); eol 733 fsck.c if (!eol) { eol 737 fsck.c if (type_from_string_gently(buffer, eol - buffer, 1) < 0) eol 741 fsck.c buffer = eol + 1; eol 747 fsck.c eol = strchr(buffer, '\n'); eol 748 fsck.c if (!eol) { eol 752 fsck.c strbuf_addf(&sb, "refs/tags/%.*s", (int)(eol - buffer), buffer); eol 756 fsck.c (int)(eol - buffer), buffer); eol 760 fsck.c buffer = eol + 1; eol 108 gpg-interface.c char *eol; eol 112 gpg-interface.c eol = memchr(buf + len, '\n', size - len); eol 113 gpg-interface.c len += eol ? eol - (buf + len) + 1 : size - len; eol 338 grep.c static int pcrematch(struct grep_pat *p, const char *line, const char *eol, eol 346 grep.c ret = pcre_exec(p->pcre_regexp, p->pcre_extra_info, line, eol - line, eol 370 grep.c static int pcrematch(struct grep_pat *p, const char *line, const char *eol, eol 836 grep.c static int fixmatch(struct grep_pat *p, char *line, char *eol, eol 840 grep.c size_t offset = kwsexec(p->kws, line, eol - line, &kwsm); eol 851 grep.c static int regmatch(const regex_t *preg, char *line, char *eol, eol 856 grep.c match->rm_eo = eol - line; eol 862 grep.c static int patmatch(struct grep_pat *p, char *line, char *eol, eol 868 grep.c hit = !fixmatch(p, line, eol, match); eol 870 grep.c hit = !pcrematch(p, line, eol, match, eflags); eol 872 grep.c hit = !regmatch(&p->regexp, line, eol, match, eflags); eol 879 grep.c char *eol = *eol_p; eol 882 grep.c while (bol < --eol) { eol 883 grep.c if (*eol != '>') eol 885 grep.c *eol_p = ++eol; eol 886 grep.c ch = *eol; eol 887 grep.c *eol = '\0'; eol 902 grep.c static int match_one_pattern(struct grep_pat *p, char *bol, char *eol, eol 926 grep.c saved_ch = strip_timestamp(bol, &eol); eol 934 grep.c hit = patmatch(p, bol, eol, pmatch, eflags); eol 938 grep.c (eol - bol) < pmatch[0].rm_so || eol 940 grep.c (eol - bol) < pmatch[0].rm_eo) eol 951 grep.c ((pmatch[0].rm_eo == (eol-bol)) || eol 961 grep.c if (!hit && pmatch[0].rm_so + bol + 1 < eol) { eol 969 grep.c while (word_char(bol[-1]) && bol < eol) eol 972 grep.c if (bol < eol) eol 977 grep.c *eol = saved_ch; eol 985 grep.c static int match_expr_eval(struct grep_expr *x, char *bol, char *eol, eol 998 grep.c h = match_one_pattern(x->u.atom, bol, eol, ctx, &match, 0); eol 1001 grep.c h = !match_expr_eval(x->u.unary, bol, eol, ctx, 0); eol 1004 grep.c if (!match_expr_eval(x->u.binary.left, bol, eol, ctx, 0)) eol 1006 grep.c h = match_expr_eval(x->u.binary.right, bol, eol, ctx, 0); eol 1011 grep.c bol, eol, ctx, 0) || eol 1013 grep.c bol, eol, ctx, 0)); eol 1014 grep.c h = match_expr_eval(x->u.binary.left, bol, eol, ctx, 0); eol 1016 grep.c h |= match_expr_eval(x->u.binary.right, bol, eol, ctx, 1); eol 1026 grep.c static int match_expr(struct grep_opt *opt, char *bol, char *eol, eol 1030 grep.c return match_expr_eval(x, bol, eol, ctx, collect_hits); eol 1033 grep.c static int match_line(struct grep_opt *opt, char *bol, char *eol, eol 1040 grep.c return match_expr(opt, bol, eol, ctx, collect_hits); eol 1044 grep.c if (match_one_pattern(p, bol, eol, ctx, &match, 0)) eol 1050 grep.c static int match_next_pattern(struct grep_pat *p, char *bol, char *eol, eol 1056 grep.c if (!match_one_pattern(p, bol, eol, ctx, &match, eflags)) eol 1071 grep.c static int next_match(struct grep_opt *opt, char *bol, char *eol, eol 1078 grep.c if (bol < eol) { eol 1084 grep.c hit |= match_next_pattern(p, bol, eol, ctx, eol 1095 grep.c static void show_line(struct grep_opt *opt, char *bol, char *eol, eol 1098 grep.c int rest = eol - bol; eol 1134 grep.c int ch = *eol; eol 1147 grep.c *eol = '\0'; eol 1148 grep.c while (next_match(opt, bol, eol, ctx, &match, eflags)) { eol 1159 grep.c *eol = ch; eol 1196 grep.c static int match_funcname(struct grep_opt *opt, struct grep_source *gs, char *bol, char *eol) eol 1211 grep.c return xecfg->find_func(bol, eol - bol, buf, 1, eol 1215 grep.c if (bol == eol) eol 1226 grep.c char *eol = --bol; eol 1235 grep.c if (match_funcname(opt, gs, bol, eol)) { eol 1236 grep.c show_line(opt, bol, eol, gs->name, lno, '='); eol 1259 grep.c char *eol = --bol; eol 1264 grep.c if (funcname_needed && match_funcname(opt, gs, bol, eol)) { eol 1276 grep.c char *eol = bol, sign = (cur == funcname_lno) ? '=' : '-'; eol 1278 grep.c while (*eol != '\n') eol 1279 grep.c eol++; eol 1280 grep.c show_line(opt, bol, eol, gs->name, cur, sign); eol 1281 grep.c bol = eol + 1; eol 1474 grep.c char *eol, ch; eol 1492 grep.c eol = end_of_line(bol, &left); eol 1493 grep.c ch = *eol; eol 1494 grep.c *eol = 0; eol 1496 grep.c if ((ctx == GREP_CONTEXT_HEAD) && (eol == bol)) eol 1499 grep.c hit = match_line(opt, bol, eol, ctx, collect_hits); eol 1500 grep.c *eol = ch; eol 1537 grep.c show_pre_context(opt, gs, bol, eol, lno); eol 1540 grep.c show_line(opt, bol, eol, gs->name, lno, ':'); eol 1546 grep.c if (show_function && match_funcname(opt, gs, bol, eol)) eol 1553 grep.c show_line(opt, bol, eol, gs->name, lno, '-'); eol 1557 grep.c bol = eol + 1; eol 118 line-range.c static int match_funcname(xdemitconf_t *xecfg, const char *bol, const char *eol) eol 122 line-range.c return xecfg->find_func(bol, eol - bol, buf, 1, eol 126 line-range.c if (bol == eol) eol 139 line-range.c const char *bol, *eol; eol 150 line-range.c eol = start+match[0].rm_eo; eol 155 line-range.c while (*eol && *eol != '\n') eol 156 line-range.c eol++; eol 157 line-range.c if (*eol == '\n') eol 158 line-range.c eol++; eol 160 line-range.c if (match_funcname(xecfg, (char*) bol, (char*) eol)) eol 162 line-range.c start = eol; eol 229 line-range.c const char *eol = nth_line_cb(cb_data, *end+1); eol 230 line-range.c if (match_funcname(xecfg, bol, eol)) eol 428 log-tree.c const char *color, *reset, *eol; eol 434 log-tree.c eol = strchrnul(bol, '\n'); eol 435 log-tree.c printf("%s%.*s%s%s", color, (int)(eol - bol), bol, reset, eol 436 log-tree.c *eol ? "\n" : ""); eol 438 log-tree.c bol = (*eol) ? (eol + 1) : eol; eol 813 pretty.c int eol; eol 814 pretty.c for (eol = i; msg[eol] && msg[eol] != '\n'; eol++) eol 817 pretty.c if (i == eol) { eol 821 pretty.c context->author.len = msg + eol - name; eol 824 pretty.c context->committer.len = msg + eol - name; eol 826 pretty.c i = eol; eol 83 progress.c const char *eol, *tp; eol 102 progress.c eol = done ? done : " \r"; eol 110 progress.c progress->total, tp, eol); eol 119 progress.c progress->title, n, tp, eol); eol 303 ref-filter.c const char *eol; eol 308 ref-filter.c eol = strchr(buf, '\n'); eol 309 ref-filter.c if (!eol) eol 311 ref-filter.c eol++; eol 312 ref-filter.c if (*eol == '\n') eol 314 ref-filter.c buf = eol; eol 321 ref-filter.c const char *eol = strchrnul(buf, '\n'); eol 322 ref-filter.c return xmemdupz(buf, eol - buf); eol 462 ref-filter.c const char *eol; eol 465 ref-filter.c eol = strchrnul(buf, '\n'); eol 466 ref-filter.c if (*eol) eol 467 ref-filter.c eol++; eol 468 ref-filter.c buf = eol; eol 482 ref-filter.c eol = strchrnul(buf, '\n'); eol 483 ref-filter.c if (*eol) eol 484 ref-filter.c eol++; eol 485 ref-filter.c buf = eol; eol 213 remote-curl.c const char *p, *eol; eol 230 remote-curl.c eol = strchrnul(p, '\n'); eol 231 remote-curl.c fprintf(stderr, "remote: %.*s\n", (int)(eol - p), p); eol 232 remote-curl.c p = eol + 1; eol 233 remote-curl.c } while(*eol); eol 676 sequencer.c static struct commit *parse_insn_line(char *bol, char *eol, struct replay_opts *opts) eol 730 sequencer.c char *eol = strchrnul(p, '\n'); eol 731 sequencer.c commit = parse_insn_line(p, eol, opts); eol 735 sequencer.c p = *eol ? eol + 1 : eol; eol 783 strbuf.c char *eol; eol 789 strbuf.c eol = memchr(sb->buf + i, '\n', sb->len - i); eol 790 strbuf.c len = eol ? eol - (sb->buf + i) + 1 : sb->len - i; eol 248 utf8.c const char *eol = strchrnul(text, '\n'); eol 249 utf8.c if (*eol == '\n') eol 250 utf8.c eol++; eol 252 utf8.c strbuf_add(buf, text, eol - text); eol 253 utf8.c text = eol; eol 49 wt-status.c const char *line, *eol; eol 64 wt-status.c for (line = sb.buf; *line; line = eol + 1) { eol 65 wt-status.c eol = strchr(line, '\n'); eol 73 wt-status.c if (eol) eol 74 wt-status.c strbuf_add(&linebuf, line, eol - line); eol 78 wt-status.c if (eol)