line              204 attr.c         static struct match_attr *parse_attr_line(const char *line, const char *src,
line              213 attr.c         	cp = line + strspn(line, blank);
line              341 attr.c         			     const char *line,
line              348 attr.c         	a = parse_attr_line(line, src, lineno, macro_ok);
line              358 attr.c         	const char *line;
line              362 attr.c         	while ((line = *(list++)) != NULL)
line              363 attr.c         		handle_attr_line(res, line, "[builtin]", ++lineno, 1);
line              265 builtin/apply.c 	struct line *line_allocated;
line              266 builtin/apply.c 	struct line *line;
line              380 builtin/apply.c 	image->line = image->line_allocated;
line              473 builtin/apply.c static char *find_name_gnu(const char *line, const char *def, int p_value)
line              482 builtin/apply.c 	if (unquote_c_style(&name, line, NULL)) {
line              502 builtin/apply.c static size_t sane_tz_len(const char *line, size_t len)
line              506 builtin/apply.c 	if (len < strlen(" +0500") || line[len-strlen(" +0500")] != ' ')
line              508 builtin/apply.c 	tz = line + len - strlen(" +0500");
line              513 builtin/apply.c 	for (p = tz + 2; p != line + len; p++)
line              517 builtin/apply.c 	return line + len - tz;
line              520 builtin/apply.c static size_t tz_with_colon_len(const char *line, size_t len)
line              524 builtin/apply.c 	if (len < strlen(" +08:00") || line[len - strlen(":00")] != ':')
line              526 builtin/apply.c 	tz = line + len - strlen(" +08:00");
line              535 builtin/apply.c 	return line + len - tz;
line              538 builtin/apply.c static size_t date_len(const char *line, size_t len)
line              542 builtin/apply.c 	if (len < strlen("72-02-05") || line[len-strlen("-05")] != '-')
line              544 builtin/apply.c 	p = date = line + len - strlen("72-02-05");
line              551 builtin/apply.c 	if (date - line >= strlen("19") &&
line              555 builtin/apply.c 	return line + len - date;
line              558 builtin/apply.c static size_t short_time_len(const char *line, size_t len)
line              562 builtin/apply.c 	if (len < strlen(" 07:01:32") || line[len-strlen(":32")] != ':')
line              564 builtin/apply.c 	p = time = line + len - strlen(" 07:01:32");
line              573 builtin/apply.c 	return line + len - time;
line              576 builtin/apply.c static size_t fractional_time_len(const char *line, size_t len)
line              582 builtin/apply.c 	if (!len || !isdigit(line[len - 1]))
line              584 builtin/apply.c 	p = line + len - 1;
line              587 builtin/apply.c 	while (p > line && isdigit(*p))
line              593 builtin/apply.c 	n = short_time_len(line, p - line);
line              597 builtin/apply.c 	return line + len - p + n;
line              600 builtin/apply.c static size_t trailing_spaces_len(const char *line, size_t len)
line              605 builtin/apply.c 	if (!len || line[len - 1] != ' ')
line              608 builtin/apply.c 	p = line + len;
line              609 builtin/apply.c 	while (p != line) {
line              612 builtin/apply.c 			return line + len - (p + 1);
line              619 builtin/apply.c static size_t diff_timestamp_len(const char *line, size_t len)
line              621 builtin/apply.c 	const char *end = line + len;
line              632 builtin/apply.c 	n = sane_tz_len(line, end - line);
line              634 builtin/apply.c 		n = tz_with_colon_len(line, end - line);
line              637 builtin/apply.c 	n = short_time_len(line, end - line);
line              639 builtin/apply.c 		n = fractional_time_len(line, end - line);
line              642 builtin/apply.c 	n = date_len(line, end - line);
line              647 builtin/apply.c 	if (end == line)	/* No space before date. */
line              651 builtin/apply.c 		return line + len - end;
line              657 builtin/apply.c 	end -= trailing_spaces_len(line, end - line);
line              658 builtin/apply.c 	return line + len - end;
line              661 builtin/apply.c static char *find_name_common(const char *line, const char *def,
line              668 builtin/apply.c 		start = line;
line              669 builtin/apply.c 	while (line != end) {
line              670 builtin/apply.c 		char c = *line;
line              675 builtin/apply.c 			if (name_terminate(start, line-start, c, terminate))
line              678 builtin/apply.c 		line++;
line              680 builtin/apply.c 			start = line;
line              684 builtin/apply.c 	len = line - start;
line              711 builtin/apply.c static char *find_name(const char *line, char *def, int p_value, int terminate)
line              713 builtin/apply.c 	if (*line == '"') {
line              714 builtin/apply.c 		char *name = find_name_gnu(line, def, p_value);
line              719 builtin/apply.c 	return find_name_common(line, def, p_value, NULL, terminate);
line              722 builtin/apply.c static char *find_name_traditional(const char *line, char *def, int p_value)
line              727 builtin/apply.c 	if (*line == '"') {
line              728 builtin/apply.c 		char *name = find_name_gnu(line, def, p_value);
line              733 builtin/apply.c 	len = strchrnul(line, '\n') - line;
line              734 builtin/apply.c 	date_len = diff_timestamp_len(line, len);
line              736 builtin/apply.c 		return find_name_common(line, def, p_value, NULL, TERM_TAB);
line              739 builtin/apply.c 	return find_name_common(line, def, p_value, line + len, 0);
line              915 builtin/apply.c static int gitdiff_hdrend(const char *line, struct patch *patch)
line              932 builtin/apply.c static char *gitdiff_verify_name(const char *line, int isnull, char *orig_name, int side)
line              935 builtin/apply.c 		return find_name(line, NULL, p_value, TERM_TAB);
line              945 builtin/apply.c 		another = find_name(line, NULL, p_value, TERM_TAB);
line              955 builtin/apply.c 		if (memcmp("/dev/null", line, 9) || line[9] != '\n')
line              961 builtin/apply.c static int gitdiff_oldname(const char *line, struct patch *patch)
line              964 builtin/apply.c 	patch->old_name = gitdiff_verify_name(line, patch->is_new, patch->old_name,
line              971 builtin/apply.c static int gitdiff_newname(const char *line, struct patch *patch)
line              974 builtin/apply.c 	patch->new_name = gitdiff_verify_name(line, patch->is_delete, patch->new_name,
line              981 builtin/apply.c static int gitdiff_oldmode(const char *line, struct patch *patch)
line              983 builtin/apply.c 	patch->old_mode = strtoul(line, NULL, 8);
line              987 builtin/apply.c static int gitdiff_newmode(const char *line, struct patch *patch)
line              989 builtin/apply.c 	patch->new_mode = strtoul(line, NULL, 8);
line              993 builtin/apply.c static int gitdiff_delete(const char *line, struct patch *patch)
line              998 builtin/apply.c 	return gitdiff_oldmode(line, patch);
line             1001 builtin/apply.c static int gitdiff_newfile(const char *line, struct patch *patch)
line             1006 builtin/apply.c 	return gitdiff_newmode(line, patch);
line             1009 builtin/apply.c static int gitdiff_copysrc(const char *line, struct patch *patch)
line             1013 builtin/apply.c 	patch->old_name = find_name(line, NULL, p_value ? p_value - 1 : 0, 0);
line             1017 builtin/apply.c static int gitdiff_copydst(const char *line, struct patch *patch)
line             1021 builtin/apply.c 	patch->new_name = find_name(line, NULL, p_value ? p_value - 1 : 0, 0);
line             1025 builtin/apply.c static int gitdiff_renamesrc(const char *line, struct patch *patch)
line             1029 builtin/apply.c 	patch->old_name = find_name(line, NULL, p_value ? p_value - 1 : 0, 0);
line             1033 builtin/apply.c static int gitdiff_renamedst(const char *line, struct patch *patch)
line             1037 builtin/apply.c 	patch->new_name = find_name(line, NULL, p_value ? p_value - 1 : 0, 0);
line             1041 builtin/apply.c static int gitdiff_similarity(const char *line, struct patch *patch)
line             1043 builtin/apply.c 	unsigned long val = strtoul(line, NULL, 10);
line             1049 builtin/apply.c static int gitdiff_dissimilarity(const char *line, struct patch *patch)
line             1051 builtin/apply.c 	unsigned long val = strtoul(line, NULL, 10);
line             1057 builtin/apply.c static int gitdiff_index(const char *line, struct patch *patch)
line             1066 builtin/apply.c 	ptr = strchr(line, '.');
line             1067 builtin/apply.c 	if (!ptr || ptr[1] != '.' || 40 < ptr - line)
line             1069 builtin/apply.c 	len = ptr - line;
line             1070 builtin/apply.c 	memcpy(patch->old_sha1_prefix, line, len);
line             1073 builtin/apply.c 	line = ptr + 2;
line             1074 builtin/apply.c 	ptr = strchr(line, ' ');
line             1075 builtin/apply.c 	eol = strchrnul(line, '\n');
line             1079 builtin/apply.c 	len = ptr - line;
line             1083 builtin/apply.c 	memcpy(patch->new_sha1_prefix, line, len);
line             1094 builtin/apply.c static int gitdiff_unrecognized(const char *line, struct patch *patch)
line             1103 builtin/apply.c static const char *skip_tree_prefix(const char *line, int llen)
line             1109 builtin/apply.c 		return (llen && line[0] == '/') ? NULL : line;
line             1113 builtin/apply.c 		int ch = line[i];
line             1115 builtin/apply.c 			return (i == 0) ? NULL : &line[i + 1];
line             1128 builtin/apply.c static char *git_header_name(const char *line, int llen)
line             1134 builtin/apply.c 	line += strlen("diff --git ");
line             1137 builtin/apply.c 	if (*line == '"') {
line             1142 builtin/apply.c 		if (unquote_c_style(&first, line, &second))
line             1155 builtin/apply.c 		while ((second < line + llen) && isspace(*second))
line             1158 builtin/apply.c 		if (line + llen <= second)
line             1174 builtin/apply.c 		cp = skip_tree_prefix(second, line + llen - second);
line             1177 builtin/apply.c 		if (line + llen - cp != first.len ||
line             1189 builtin/apply.c 	name = skip_tree_prefix(line, llen);
line             1197 builtin/apply.c 	for (second = name; second < line + llen; second++) {
line             1265 builtin/apply.c static int parse_git_header(const char *line, int len, unsigned int size, struct patch *patch)
line             1279 builtin/apply.c 	patch->def_name = git_header_name(line, len);
line             1286 builtin/apply.c 	line += len;
line             1289 builtin/apply.c 	for (offset = len ; size > 0 ; offset += len, size -= len, line += len, linenr++) {
line             1314 builtin/apply.c 		len = linelen(line, size);
line             1315 builtin/apply.c 		if (!len || line[len-1] != '\n')
line             1320 builtin/apply.c 			if (len < oplen || memcmp(p->str, line, oplen))
line             1322 builtin/apply.c 			if (p->fn(line + oplen, patch) < 0)
line             1331 builtin/apply.c static int parse_num(const char *line, unsigned long *p)
line             1335 builtin/apply.c 	if (!isdigit(*line))
line             1337 builtin/apply.c 	*p = strtoul(line, &ptr, 10);
line             1338 builtin/apply.c 	return ptr - line;
line             1341 builtin/apply.c static int parse_range(const char *line, int len, int offset, const char *expect,
line             1348 builtin/apply.c 	line += offset;
line             1351 builtin/apply.c 	digits = parse_num(line, p1);
line             1356 builtin/apply.c 	line += digits;
line             1360 builtin/apply.c 	if (*line == ',') {
line             1361 builtin/apply.c 		digits = parse_num(line+1, p2);
line             1366 builtin/apply.c 		line += digits+1;
line             1373 builtin/apply.c 	if (memcmp(line, expect, ex))
line             1379 builtin/apply.c static void recount_diff(const char *line, int size, struct fragment *fragment)
line             1389 builtin/apply.c 		int len = linelen(line, size);
line             1391 builtin/apply.c 		line += len;
line             1396 builtin/apply.c 		switch (*line) {
line             1409 builtin/apply.c 			ret = size < 3 || !starts_with(line, "@@ ");
line             1412 builtin/apply.c 			ret = size < 5 || !starts_with(line, "diff ");
line             1420 builtin/apply.c 				(int)linelen(line, size), line);
line             1433 builtin/apply.c static int parse_fragment_header(const char *line, int len, struct fragment *fragment)
line             1437 builtin/apply.c 	if (!len || line[len-1] != '\n')
line             1441 builtin/apply.c 	offset = parse_range(line, len, 4, " +", &fragment->oldpos, &fragment->oldlines);
line             1442 builtin/apply.c 	offset = parse_range(line, len, offset, " @@", &fragment->newpos, &fragment->newlines);
line             1447 builtin/apply.c static int find_header(const char *line, unsigned long size, int *hdrsize, struct patch *patch)
line             1456 builtin/apply.c 	for (offset = 0; size > 0; offset += len, size -= len, line += len, linenr++) {
line             1459 builtin/apply.c 		len = linelen(line, size);
line             1472 builtin/apply.c 		if (!memcmp("@@ -", line, 4)) {
line             1474 builtin/apply.c 			if (parse_fragment_header(line, len, &dummy) < 0)
line             1477 builtin/apply.c 			    linenr, (int)len-1, line);
line             1487 builtin/apply.c 		if (!memcmp("diff --git ", line, 11)) {
line             1488 builtin/apply.c 			int git_hdr_len = parse_git_header(line, len, size, patch);
line             1511 builtin/apply.c 		if (memcmp("--- ", line,  4) || memcmp("+++ ", line + len, 4))
line             1519 builtin/apply.c 		nextlen = linelen(line + len, size - len);
line             1520 builtin/apply.c 		if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
line             1524 builtin/apply.c 		parse_traditional_patch(line, line+len, patch);
line             1532 builtin/apply.c static void record_ws_error(unsigned result, const char *line, int len, int linenr)
line             1546 builtin/apply.c 		patch_input_file, linenr, err, len, line);
line             1550 builtin/apply.c static void check_whitespace(const char *line, int len, unsigned ws_rule)
line             1552 builtin/apply.c 	unsigned result = ws_check(line + 1, len - 1, ws_rule);
line             1554 builtin/apply.c 	record_ws_error(result, line + 1, len - 2, linenr);
line             1563 builtin/apply.c static int parse_fragment(const char *line, unsigned long size,
line             1567 builtin/apply.c 	int len = linelen(line, size), offset;
line             1571 builtin/apply.c 	offset = parse_fragment_header(line, len, fragment);
line             1575 builtin/apply.c 		recount_diff(line + offset, size - offset, fragment);
line             1582 builtin/apply.c 	line += len;
line             1588 builtin/apply.c 	     offset += len, size -= len, line += len, linenr++) {
line             1591 builtin/apply.c 		len = linelen(line, size);
line             1592 builtin/apply.c 		if (!len || line[len-1] != '\n')
line             1594 builtin/apply.c 		switch (*line) {
line             1606 builtin/apply.c 				check_whitespace(line, len, patch->ws_rule);
line             1611 builtin/apply.c 				check_whitespace(line, len, patch->ws_rule);
line             1619 builtin/apply.c 				check_whitespace(line, len, patch->ws_rule);
line             1634 builtin/apply.c 			if (len < 12 || memcmp(line, "\\ ", 2))
line             1652 builtin/apply.c 	if (12 < size && !memcmp(line, "\\ ", 2))
line             1653 builtin/apply.c 		offset += linelen(line, size);
line             1673 builtin/apply.c static int parse_single_patch(const char *line, unsigned long size, struct patch *patch)
line             1679 builtin/apply.c 	while (size > 4 && !memcmp(line, "@@ -", 4)) {
line             1685 builtin/apply.c 		len = parse_fragment(line, size, patch, fragment);
line             1688 builtin/apply.c 		fragment->patch = line;
line             1698 builtin/apply.c 		line += len;
line             2182 builtin/apply.c 		fixed_preimage.line[i].flag = preimage->line[i].flag;
line             2203 builtin/apply.c 		size_t len = postimage->line[i].len;
line             2204 builtin/apply.c 		if (!(postimage->line[i].flag & LINE_COMMON)) {
line             2217 builtin/apply.c 		       !(preimage->line[ctx].flag & LINE_COMMON)) {
line             2218 builtin/apply.c 			fixed += preimage->line[ctx].len;
line             2232 builtin/apply.c 		len = preimage->line[ctx].len;
line             2236 builtin/apply.c 		postimage->line[i].len = len;
line             2296 builtin/apply.c 		if ((img->line[try_lno + i].flag & LINE_PATCHED) ||
line             2297 builtin/apply.c 		    (preimage->line[i].hash != img->line[try_lno + i].hash))
line             2326 builtin/apply.c 			buf_end += preimage->line[i].len;
line             2348 builtin/apply.c 			size_t prelen = preimage->line[i].len;
line             2349 builtin/apply.c 			size_t imglen = img->line[try_lno+i].len;
line             2354 builtin/apply.c 			if (preimage->line[i].flag & LINE_COMMON)
line             2373 builtin/apply.c 			preoff += preimage->line[i].len;
line             2417 builtin/apply.c 		if (!(postimage->line[i].flag & LINE_COMMON))
line             2418 builtin/apply.c 			postlen += postimage->line[i].len;
line             2430 builtin/apply.c 		size_t oldlen = preimage->line[i].len;
line             2431 builtin/apply.c 		size_t tgtlen = img->line[try_lno + i].len;
line             2458 builtin/apply.c 		if (preimage->line[i].flag & LINE_COMMON)
line             2478 builtin/apply.c 		size_t oldlen = preimage->line[i].len;
line             2511 builtin/apply.c 		    int line,
line             2525 builtin/apply.c 		line = 0;
line             2527 builtin/apply.c 		line = img->nr - preimage->nr;
line             2534 builtin/apply.c 	if ((size_t) line > img->nr)
line             2535 builtin/apply.c 		line = img->nr;
line             2538 builtin/apply.c 	for (i = 0; i < line; i++)
line             2539 builtin/apply.c 		try += img->line[i].len;
line             2546 builtin/apply.c 	backwards_lno = line;
line             2548 builtin/apply.c 	forwards_lno = line;
line             2549 builtin/apply.c 	try_lno = line;
line             2567 builtin/apply.c 			backwards -= img->line[backwards_lno].len;
line             2575 builtin/apply.c 			forwards += img->line[forwards_lno].len;
line             2587 builtin/apply.c 	img->buf += img->line[0].len;
line             2588 builtin/apply.c 	img->len -= img->line[0].len;
line             2589 builtin/apply.c 	img->line++;
line             2595 builtin/apply.c 	img->len -= img->line[--img->nr].len;
line             2631 builtin/apply.c 		applied_at += img->line[i].len;
line             2635 builtin/apply.c 		remove_count += img->line[applied_pos + i].len;
line             2657 builtin/apply.c 		REALLOC_ARRAY(img->line, nr);
line             2658 builtin/apply.c 		img->line_allocated = img->line;
line             2661 builtin/apply.c 		memmove(img->line + applied_pos + postimage->nr,
line             2662 builtin/apply.c 			img->line + applied_pos + preimage_limit,
line             2664 builtin/apply.c 			sizeof(*img->line));
line             2665 builtin/apply.c 	memcpy(img->line + applied_pos,
line             2666 builtin/apply.c 	       postimage->line,
line             2667 builtin/apply.c 	       postimage->nr * sizeof(*img->line));
line             2670 builtin/apply.c 			img->line[applied_pos + i].flag |= LINE_PATCHED;
line             2836 builtin/apply.c 	preimage.line = preimage.line_allocated;
line             2837 builtin/apply.c 	postimage.line = postimage.line_allocated;
line             2242 builtin/blame.c 	struct strbuf line = STRBUF_INIT;
line             2251 builtin/blame.c 	while (!strbuf_getwholeline_fd(&line, merge_head, '\n')) {
line             2253 builtin/blame.c 		if (line.len < 40 || get_sha1_hex(line.buf, sha1))
line             2254 builtin/blame.c 			die("unknown line in '%s': %s", git_path_merge_head(), line.buf);
line             2258 builtin/blame.c 	strbuf_release(&line);
line              340 builtin/clone.c 	struct strbuf line = STRBUF_INIT;
line              342 builtin/clone.c 	while (strbuf_getline(&line, in, '\n') != EOF) {
line              344 builtin/clone.c 		if (!line.len || line.buf[0] == '#')
line              346 builtin/clone.c 		if (is_absolute_path(line.buf)) {
line              347 builtin/clone.c 			add_to_alternates_file(line.buf);
line              350 builtin/clone.c 		abs_path = mkpathdup("%s/objects/%s", src_repo, line.buf);
line              355 builtin/clone.c 	strbuf_release(&line);
line               19 builtin/diff-tree.c static int stdin_diff_commit(struct commit *commit, char *line, int len)
line               22 builtin/diff-tree.c 	if (isspace(line[40]) && !get_sha1_hex(line+41, sha1)) {
line               31 builtin/diff-tree.c 		while (line[pos] && !get_sha1_hex(line + pos, sha1)) {
line               43 builtin/diff-tree.c static int stdin_diff_trees(struct tree *tree1, char *line, int len)
line               47 builtin/diff-tree.c 	if (len != 82 || !isspace(line[40]) || get_sha1_hex(line + 41, sha1))
line               60 builtin/diff-tree.c static int diff_tree_stdin(char *line)
line               62 builtin/diff-tree.c 	int len = strlen(line);
line               66 builtin/diff-tree.c 	if (!len || line[len-1] != '\n')
line               68 builtin/diff-tree.c 	line[len-1] = 0;
line               69 builtin/diff-tree.c 	if (get_sha1_hex(line, sha1))
line               75 builtin/diff-tree.c 		return stdin_diff_commit((struct commit *)obj, line, len);
line               77 builtin/diff-tree.c 		return stdin_diff_trees((struct tree *)obj, line, len);
line              103 builtin/diff-tree.c 	char line[1000];
line              166 builtin/diff-tree.c 		while (fgets(line, sizeof(line), stdin)) {
line              169 builtin/diff-tree.c 			if (get_sha1_hex(line, sha1)) {
line              170 builtin/diff-tree.c 				fputs(line, stdout);
line              174 builtin/diff-tree.c 				diff_tree_stdin(line);
line              907 builtin/fast-export.c 	char line[512];
line              912 builtin/fast-export.c 	while (fgets(line, sizeof(line), f)) {
line              920 builtin/fast-export.c 		line_end = strchr(line, '\n');
line              921 builtin/fast-export.c 		if (line[0] != ':' || !line_end)
line              922 builtin/fast-export.c 			die("corrupt mark line: %s", line);
line              925 builtin/fast-export.c 		mark = strtoumax(line + 1, &mark_end, 10);
line              926 builtin/fast-export.c 		if (!mark || mark_end == line + 1
line              928 builtin/fast-export.c 			die("corrupt mark line: %s", line);
line              150 builtin/fetch-pack.c 				char *line = packet_read_line(0, NULL);
line              151 builtin/fetch-pack.c 				if (!line)
line              153 builtin/fetch-pack.c 				add_sought_entry(&sought, &nr_sought,  &alloc_sought, line);
line              158 builtin/fetch-pack.c 			struct strbuf line = STRBUF_INIT;
line              159 builtin/fetch-pack.c 			while (strbuf_getline(&line, stdin, '\n') != EOF)
line              160 builtin/fetch-pack.c 				add_sought_entry(&sought, &nr_sought, &alloc_sought, line.buf);
line              161 builtin/fetch-pack.c 			strbuf_release(&line);
line              100 builtin/fmt-merge-msg.c static int handle_line(char *line, struct merge_parents *merge_parents)
line              102 builtin/fmt-merge-msg.c 	int i, len = strlen(line);
line              111 builtin/fmt-merge-msg.c 	if (len < 43 || line[40] != '\t')
line              114 builtin/fmt-merge-msg.c 	if (starts_with(line + 41, "not-for-merge"))
line              117 builtin/fmt-merge-msg.c 	if (line[41] != '\t')
line              120 builtin/fmt-merge-msg.c 	i = get_sha1_hex(line, sha1);
line              130 builtin/fmt-merge-msg.c 	if (line[len - 1] == '\n')
line              131 builtin/fmt-merge-msg.c 		line[len - 1] = 0;
line              132 builtin/fmt-merge-msg.c 	line += 42;
line              139 builtin/fmt-merge-msg.c 	src = strstr(line, " of ");
line              145 builtin/fmt-merge-msg.c 		src = line;
line              160 builtin/fmt-merge-msg.c 	} else if (starts_with(line, "branch ")) {
line              162 builtin/fmt-merge-msg.c 		origin = line + 7;
line              165 builtin/fmt-merge-msg.c 	} else if (starts_with(line, "tag ")) {
line              166 builtin/fmt-merge-msg.c 		origin = line;
line              169 builtin/fmt-merge-msg.c 	} else if (skip_prefix(line, "remote-tracking branch ", &origin)) {
line              174 builtin/fmt-merge-msg.c 		string_list_append(&src_data->generic, line);
line               15 builtin/mailinfo.c static struct strbuf line = STRBUF_INIT;
line               49 builtin/mailinfo.c static void parse_bogus_from(const struct strbuf *line)
line               60 builtin/mailinfo.c 	bra = strchr(line->buf, '<');
line               71 builtin/mailinfo.c 	strbuf_add(&name, line->buf, bra - line->buf);
line              140 builtin/mailinfo.c static void handle_header(struct strbuf **out, const struct strbuf *line)
line              144 builtin/mailinfo.c 		strbuf_init(*out, line->len);
line              148 builtin/mailinfo.c 	strbuf_addbuf(*out, line);
line              157 builtin/mailinfo.c static int slurp_attr(const char *line, const char *name, struct strbuf *attr)
line              159 builtin/mailinfo.c 	const char *ends, *ap = strcasestr(line, name);
line              181 builtin/mailinfo.c static void handle_content_type(struct strbuf *line)
line              184 builtin/mailinfo.c 	strbuf_init(boundary, line->len);
line              186 builtin/mailinfo.c 	if (slurp_attr(line->buf, "boundary=", boundary)) {
line              195 builtin/mailinfo.c 	slurp_attr(line->buf, "charset=", &charset);
line              203 builtin/mailinfo.c static void handle_message_id(const struct strbuf *line)
line              206 builtin/mailinfo.c 		message_id = strdup(line->buf);
line              209 builtin/mailinfo.c static void handle_content_transfer_encoding(const struct strbuf *line)
line              211 builtin/mailinfo.c 	if (strcasestr(line->buf, "base64"))
line              213 builtin/mailinfo.c 	else if (strcasestr(line->buf, "quoted-printable"))
line              219 builtin/mailinfo.c static int is_multipart_boundary(const struct strbuf *line)
line              221 builtin/mailinfo.c 	return (((*content_top)->len <= line->len) &&
line              222 builtin/mailinfo.c 		!memcmp(line->buf, (*content_top)->buf, (*content_top)->len));
line              287 builtin/mailinfo.c static void decode_header(struct strbuf *line);
line              292 builtin/mailinfo.c static inline int cmp_header(const struct strbuf *line, const char *hdr)
line              295 builtin/mailinfo.c 	return !strncasecmp(line->buf, hdr, len) && line->len > len &&
line              296 builtin/mailinfo.c 			line->buf[len] == ':' && isspace(line->buf[len + 1]);
line              299 builtin/mailinfo.c static int is_format_patch_separator(const char *line, int len)
line              307 builtin/mailinfo.c 	if (!skip_prefix(line, "From ", &cp))
line              312 builtin/mailinfo.c 	return !memcmp(SAMPLE + (cp - line), cp, strlen(SAMPLE) - (cp - line));
line              315 builtin/mailinfo.c static int check_header(const struct strbuf *line,
line              323 builtin/mailinfo.c 		if ((!hdr_data[i] || overwrite) && cmp_header(line, header[i])) {
line              327 builtin/mailinfo.c 			strbuf_add(&sb, line->buf + len + 2, line->len - len - 2);
line              336 builtin/mailinfo.c 	if (cmp_header(line, "Content-Type")) {
line              338 builtin/mailinfo.c 		strbuf_add(&sb, line->buf + len, line->len - len);
line              345 builtin/mailinfo.c 	if (cmp_header(line, "Content-Transfer-Encoding")) {
line              347 builtin/mailinfo.c 		strbuf_add(&sb, line->buf + len, line->len - len);
line              353 builtin/mailinfo.c 	if (cmp_header(line, "Message-Id")) {
line              355 builtin/mailinfo.c 		strbuf_add(&sb, line->buf + len, line->len - len);
line              363 builtin/mailinfo.c 	if (starts_with(line->buf, ">From") && isspace(line->buf[5])) {
line              364 builtin/mailinfo.c 		ret = is_format_patch_separator(line->buf + 1, line->len - 1);
line              367 builtin/mailinfo.c 	if (starts_with(line->buf, "[PATCH]") && isspace(line->buf[7])) {
line              370 builtin/mailinfo.c 				handle_header(&hdr_data[i], line);
line              382 builtin/mailinfo.c static int is_rfc2822_header(const struct strbuf *line)
line              393 builtin/mailinfo.c 	char *cp = line->buf;
line              410 builtin/mailinfo.c static int read_one_header_line(struct strbuf *line, FILE *in)
line              413 builtin/mailinfo.c 	if (strbuf_getline(line, in, '\n'))
line              420 builtin/mailinfo.c 	strbuf_rtrim(line);
line              421 builtin/mailinfo.c 	if (!line->len || !is_rfc2822_header(line)) {
line              423 builtin/mailinfo.c 		strbuf_addch(line, '\n');
line              442 builtin/mailinfo.c 		strbuf_addbuf(line, &continuation);
line              512 builtin/mailinfo.c static void convert_to_utf8(struct strbuf *line, const char *charset)
line              521 builtin/mailinfo.c 	out = reencode_string(line->buf, metainfo_charset, charset);
line              525 builtin/mailinfo.c 	strbuf_attach(line, out, strlen(out), strlen(out));
line              622 builtin/mailinfo.c static void decode_transfer_encoding(struct strbuf *line)
line              628 builtin/mailinfo.c 		ret = decode_q_segment(line, 0);
line              631 builtin/mailinfo.c 		ret = decode_b_segment(line);
line              637 builtin/mailinfo.c 	strbuf_reset(line);
line              638 builtin/mailinfo.c 	strbuf_addbuf(line, ret);
line              643 builtin/mailinfo.c static void handle_filter(struct strbuf *line);
line              647 builtin/mailinfo.c 	while (!strbuf_getline(&line, fin, '\n')) {
line              648 builtin/mailinfo.c 		if (*content_top && is_multipart_boundary(&line))
line              660 builtin/mailinfo.c 	if (line.len >= (*content_top)->len + 2 &&
line              661 builtin/mailinfo.c 	    !memcmp(line.buf + (*content_top)->len, "--", 2)) {
line              690 builtin/mailinfo.c 	while (read_one_header_line(&line, fin))
line              691 builtin/mailinfo.c 		check_header(&line, p_hdr_data, 0);
line              695 builtin/mailinfo.c 	if (strbuf_getline(&line, fin, '\n'))
line              697 builtin/mailinfo.c 	strbuf_addch(&line, '\n');
line              701 builtin/mailinfo.c static inline int patchbreak(const struct strbuf *line)
line              706 builtin/mailinfo.c 	if (starts_with(line->buf, "diff -"))
line              710 builtin/mailinfo.c 	if (starts_with(line->buf, "Index: "))
line              717 builtin/mailinfo.c 	if (line->len < 4)
line              720 builtin/mailinfo.c 	if (starts_with(line->buf, "---")) {
line              722 builtin/mailinfo.c 		if (line->buf[3] == ' ' && !isspace(line->buf[4]))
line              725 builtin/mailinfo.c 		for (i = 3; i < line->len; i++) {
line              726 builtin/mailinfo.c 			unsigned char c = line->buf[i];
line              737 builtin/mailinfo.c static int is_scissors_line(const struct strbuf *line)
line              739 builtin/mailinfo.c 	size_t i, len = line->len;
line              743 builtin/mailinfo.c 	const char *buf = line->buf;
line              788 builtin/mailinfo.c static int handle_commit_msg(struct strbuf *line)
line              796 builtin/mailinfo.c 		if (!line->len || (line->len == 1 && line->buf[0] == '\n'))
line              801 builtin/mailinfo.c 		still_looking = check_header(line, s_hdr_data, 0);
line              812 builtin/mailinfo.c 		convert_to_utf8(line, charset.buf);
line              814 builtin/mailinfo.c 	if (use_scissors && is_scissors_line(line)) {
line              834 builtin/mailinfo.c 	if (patchbreak(line)) {
line              842 builtin/mailinfo.c 	fputs(line->buf, cmitmsg);
line              846 builtin/mailinfo.c static void handle_patch(const struct strbuf *line)
line              848 builtin/mailinfo.c 	fwrite(line->buf, 1, line->len, patchfile);
line              852 builtin/mailinfo.c static void handle_filter(struct strbuf *line)
line              859 builtin/mailinfo.c 		if (!handle_commit_msg(line))
line              863 builtin/mailinfo.c 		handle_patch(line);
line              880 builtin/mailinfo.c 		if (*content_top && is_multipart_boundary(&line)) {
line              891 builtin/mailinfo.c 		decode_transfer_encoding(&line);
line              900 builtin/mailinfo.c 			strbuf_insert(&line, 0, prev.buf, prev.len);
line              908 builtin/mailinfo.c 			lines = strbuf_split(&line, '\n');
line              926 builtin/mailinfo.c 			handle_filter(&line);
line              929 builtin/mailinfo.c 	} while (!strbuf_getwholeline(&line, fin, '\n'));
line             1012 builtin/mailinfo.c 	while (read_one_header_line(&line, fin))
line             1013 builtin/mailinfo.c 		check_header(&line, p_hdr_data, 1);
line               15 builtin/mailsplit.c static int is_from_line(const char *line, int len)
line               19 builtin/mailsplit.c 	if (len < 20 || memcmp("From ", line, 5))
line               22 builtin/mailsplit.c 	colon = line + len - 2;
line               23 builtin/mailsplit.c 	line += 5;
line               25 builtin/mailsplit.c 		if (colon < line)
line             2247 builtin/pack-objects.c 	char line[40 + 1 + PATH_MAX + 2];
line             2251 builtin/pack-objects.c 		if (!fgets(line, sizeof(line), stdin)) {
line             2261 builtin/pack-objects.c 		if (line[0] == '-') {
line             2262 builtin/pack-objects.c 			if (get_sha1_hex(line+1, sha1))
line             2264 builtin/pack-objects.c 				    line);
line             2268 builtin/pack-objects.c 		if (get_sha1_hex(line, sha1))
line             2269 builtin/pack-objects.c 			die("expected sha1, got garbage:\n %s", line);
line             2271 builtin/pack-objects.c 		add_preferred_base_object(line+41);
line             2272 builtin/pack-objects.c 		add_object_entry(sha1, 0, line+41, 0);
line             2498 builtin/pack-objects.c 	char line[1000];
line             2508 builtin/pack-objects.c 	while (fgets(line, sizeof(line), stdin) != NULL) {
line             2509 builtin/pack-objects.c 		int len = strlen(line);
line             2510 builtin/pack-objects.c 		if (len && line[len - 1] == '\n')
line             2511 builtin/pack-objects.c 			line[--len] = 0;
line             2514 builtin/pack-objects.c 		if (*line == '-') {
line             2515 builtin/pack-objects.c 			if (!strcmp(line, "--not")) {
line             2520 builtin/pack-objects.c 			if (starts_with(line, "--shallow ")) {
line             2522 builtin/pack-objects.c 				if (get_sha1_hex(line + 10, sha1))
line             2523 builtin/pack-objects.c 					die("not an SHA-1 '%s'", line + 10);
line             2528 builtin/pack-objects.c 			die("not a rev '%s'", line);
line             2530 builtin/pack-objects.c 		if (handle_revision_arg(line, &revs, flags, REVARG_CANNOT_BE_FILENAME))
line             2531 builtin/pack-objects.c 			die("bad revision '%s'", line);
line               14 builtin/patch-id.c static int remove_space(char *line)
line               16 builtin/patch-id.c 	char *src = line;
line               17 builtin/patch-id.c 	char *dst = line;
line               24 builtin/patch-id.c 	return dst - line;
line               83 builtin/patch-id.c 		char *line = line_buf->buf;
line               84 builtin/patch-id.c 		char *p = line;
line               87 builtin/patch-id.c 		if (!memcmp(line, "diff-tree ", 10))
line               89 builtin/patch-id.c 		else if (!memcmp(line, "commit ", 7))
line               91 builtin/patch-id.c 		else if (!memcmp(line, "From ", 5))
line               93 builtin/patch-id.c 		else if (!memcmp(line, "\\ ", 2) && 12 < strlen(line))
line              102 builtin/patch-id.c 		if (!patchlen && memcmp(line, "diff ", 5))
line              107 builtin/patch-id.c 			if (!memcmp(line, "index ", 6))
line              109 builtin/patch-id.c 			else if (!memcmp(line, "--- ", 4))
line              111 builtin/patch-id.c 			else if (!isalpha(line[0]))
line              117 builtin/patch-id.c 			if (!memcmp(line, "@@ -", 4)) {
line              119 builtin/patch-id.c 				scan_hunk_header(line, &before, &after);
line              124 builtin/patch-id.c 			if (memcmp(line, "diff ", 5))
line              134 builtin/patch-id.c 		if (line[0] == '-' || line[0] == ' ')
line              136 builtin/patch-id.c 		if (line[0] == '+' || line[0] == ' ')
line              140 builtin/patch-id.c 		len = remove_space(line);
line              142 builtin/patch-id.c 		git_SHA1_Update(&ctx, line, len);
line              390 builtin/receive-pack.c 	const char *line = msg;
line              392 builtin/receive-pack.c 	while (line && line < msg + len) {
line              393 builtin/receive-pack.c 		const char *eol = strchrnul(line, '\n');
line              395 builtin/receive-pack.c 		if ((msg + len <= eol) || line == eol)
line              397 builtin/receive-pack.c 		if (line + key_len < eol &&
line              398 builtin/receive-pack.c 		    !memcmp(line, key, key_len) && line[key_len] == ' ') {
line              400 builtin/receive-pack.c 			return xmemdupz(line + offset, (eol - line) - offset);
line              402 builtin/receive-pack.c 		line = *eol ? eol + 1 : NULL;
line             1346 builtin/receive-pack.c 				      const char *line,
line             1355 builtin/receive-pack.c 	    line[40] != ' ' ||
line             1356 builtin/receive-pack.c 	    line[81] != ' ' ||
line             1357 builtin/receive-pack.c 	    get_sha1_hex(line, old_sha1) ||
line             1358 builtin/receive-pack.c 	    get_sha1_hex(line + 41, new_sha1))
line             1359 builtin/receive-pack.c 		die("protocol error: expected old/new/ref, got '%s'", line);
line             1361 builtin/receive-pack.c 	refname = line + 82;
line             1399 builtin/receive-pack.c 		char *line;
line             1402 builtin/receive-pack.c 		line = packet_read_line(0, &len);
line             1403 builtin/receive-pack.c 		if (!line)
line             1406 builtin/receive-pack.c 		if (len == 48 && starts_with(line, "shallow ")) {
line             1408 builtin/receive-pack.c 			if (get_sha1_hex(line + 8, sha1))
line             1410 builtin/receive-pack.c 				    line + 8);
line             1415 builtin/receive-pack.c 		linelen = strlen(line);
line             1417 builtin/receive-pack.c 			const char *feature_list = line + linelen + 1;
line             1429 builtin/receive-pack.c 		if (!strcmp(line, "push-cert")) {
line             1450 builtin/receive-pack.c 		p = queue_command(p, line, linelen);
line              141 builtin/repack.c 	struct strbuf line = STRBUF_INIT;
line              269 builtin/repack.c 	while (strbuf_getline(&line, out, '\n') != EOF) {
line              270 builtin/repack.c 		if (line.len != 40)
line              272 builtin/repack.c 		string_list_append(&names, line.buf);
line              411 builtin/repack.c 	strbuf_release(&line);
line              214 builtin/send-pack.c 			struct strbuf line = STRBUF_INIT;
line              215 builtin/send-pack.c 			while (strbuf_getline(&line, stdin, '\n') != EOF)
line              216 builtin/send-pack.c 				argv_array_push(&all_refspecs, line.buf);
line              217 builtin/send-pack.c 			strbuf_release(&line);
line              213 bundle.c       	char *buf = NULL, *line, *lineend;
line              223 bundle.c       	line = memmem(buf, size, "\ntagger ", 8);
line              224 bundle.c       	if (!line++)
line              226 bundle.c       	lineend = memchr(line, '\n', buf + size - line);
line              227 bundle.c       	line = memchr(line, '>', lineend ? lineend - line : buf + size - line);
line              228 bundle.c       	if (!line++)
line              230 bundle.c       	date = strtoul(line, NULL, 10);
line             1609 cache.h        int decode_85(char *dst, const char *line, int linelen);
line             1655 cache.h        extern unsigned ws_check(const char *line, int len, unsigned ws_rule);
line             1656 cache.h        extern void ws_check_emit(const char *line, int len, unsigned ws_rule, FILE *stream, const char *set, const char *reset, const char *ws);
line             1659 cache.h        extern int ws_blank_line(const char *line, int len, unsigned ws_rule);
line               95 combine-diff.c 	char line[FLEX_ARRAY];
line              204 combine-diff.c 			if (match_string_spaces(baseend->line, baseend->len,
line              205 combine-diff.c 						newend->line, newend->len, flags)) {
line              315 combine-diff.c static void append_lost(struct sline *sline, int n, const char *line, int len)
line              319 combine-diff.c 	if (line[len-1] == '\n')
line              333 combine-diff.c 	memcpy(lline->line, line, len);
line              334 combine-diff.c 	lline->line[len] = 0;
line              347 combine-diff.c static void consume_line(void *state_, char *line, unsigned long len)
line              350 combine-diff.c 	if (5 < len && !memcmp("@@ -", line, 4)) {
line              351 combine-diff.c 		if (parse_hunk_header(line, len,
line              381 combine-diff.c 	switch (line[0]) {
line              383 combine-diff.c 		append_lost(state->lost_bucket, state->n, line+1, len-1);
line              711 combine-diff.c static void show_line_to_eol(const char *line, int len, const char *reset)
line              715 combine-diff.c 		len = strlen(line);
line              716 combine-diff.c 	saw_cr_at_eol = (len && line[len-1] == '\r');
line              718 combine-diff.c 	printf("%.*s%s%s\n", len - saw_cr_at_eol, line,
line              819 combine-diff.c 				show_line_to_eol(ll->line, -1, c_reset);
line             1140 commit.c       	const char *line, *tail;
line             1142 commit.c       	line = buffer;
line             1146 commit.c       	while (line < tail) {
line             1148 commit.c       		const char *next = memchr(line, '\n', tail - line);
line             1151 commit.c       		if (in_signature && line[0] == ' ')
line             1152 commit.c       			sig = line + 1;
line             1153 commit.c       		else if (starts_with(line, gpg_sig_header) &&
line             1154 commit.c       			 line[gpg_sig_header_len] == ' ')
line             1155 commit.c       			sig = line + gpg_sig_header_len + 1;
line             1161 commit.c       			if (*line == '\n')
line             1164 commit.c       			strbuf_add(payload, line, next - line);
line             1167 commit.c       		line = next;
line             1175 commit.c       	const char *line = buf->buf;
line             1181 commit.c       	while (line < tail) {
line             1182 commit.c       		const char *next = memchr(line, '\n', tail - line);
line             1185 commit.c       		if (in_signature && line[0] == ' ')
line             1187 commit.c       		else if (starts_with(line, gpg_sig_header) &&
line             1188 commit.c       			 line[gpg_sig_header_len] == ' ') {
line             1189 commit.c       			sig_start = line;
line             1193 commit.c       			if (*line == '\n')
line             1198 commit.c       		line = next;
line             1342 commit.c       	const char *line, *next, *eof, *eob;
line             1345 commit.c       	for (line = buffer, eob = line + size;
line             1346 commit.c       	     line < eob && *line != '\n';
line             1347 commit.c       	     line = next) {
line             1348 commit.c       		next = memchr(line, '\n', eob - line);
line             1350 commit.c       		if (*line == ' ') {
line             1353 commit.c       				strbuf_add(&buf, line + 1, next - (line + 1));
line             1361 commit.c       		eof = strchr(line, ' ');
line             1365 commit.c       		if (standard_header_field(line, eof - line) ||
line             1366 commit.c       		    excluded_header_field(line, eof - line, exclude))
line             1370 commit.c       		it->key = xmemdupz(line, eof-line);
line             1646 commit.c       	const char *line = msg;
line             1648 commit.c       	while (line) {
line             1649 commit.c       		const char *eol = strchrnul(line, '\n');
line             1651 commit.c       		if (line == eol)
line             1654 commit.c       		if (eol - line > key_len &&
line             1655 commit.c       		    !strncmp(line, key, key_len) &&
line             1656 commit.c       		    line[key_len] == ' ') {
line             1657 commit.c       			*out_len = eol - line - key_len - 1;
line             1658 commit.c       			return line + key_len + 1;
line             1660 commit.c       		line = *eol ? eol + 1 : NULL;
line              189 commit.h       		  const char *line, const char *encoding);
line              203 contrib/convert-objects/convert-objects.c 	char *line = *buf;
line              204 contrib/convert-objects/convert-objects.c 	char *next = strchr(line, '\n');
line              205 contrib/convert-objects/convert-objects.c 	char *date = strchr(line, '>');
line              209 contrib/convert-objects/convert-objects.c 		die("missing or bad author/committer line %s", line);
line              213 contrib/convert-objects/convert-objects.c 	*sp = size - (next - line);
line              215 contrib/convert-objects/convert-objects.c 	len = date - line;
line              216 contrib/convert-objects/convert-objects.c 	memcpy(dst, line, len);
line              423 contrib/examples/builtin-fetch--tool.c 		const char *line;
line              441 contrib/examples/builtin-fetch--tool.c 				lrr_list[i].line = cp;
line              474 contrib/examples/builtin-fetch--tool.c 					       lrr->line);
line               15 credential-store.c 	struct strbuf line = STRBUF_INIT;
line               26 credential-store.c 	while (strbuf_getline(&line, fh, '\n') != EOF) {
line               27 credential-store.c 		credential_from_url(&entry, line.buf);
line               37 credential-store.c 			other_cb(&line);
line               41 credential-store.c 	strbuf_release(&line);
line              143 credential.c   	struct strbuf line = STRBUF_INIT;
line              145 credential.c   	while (strbuf_getline(&line, fp, '\n') != EOF) {
line              146 credential.c   		char *key = line.buf;
line              149 credential.c   		if (!line.len)
line              154 credential.c   			strbuf_release(&line);
line              186 credential.c   	strbuf_release(&line);
line              417 daemon.c       	struct strbuf line = STRBUF_INIT;
line              427 daemon.c       	while (strbuf_getline(&line, fp, '\n') != EOF) {
line              428 daemon.c       		logerror("%s", line.buf);
line              429 daemon.c       		strbuf_setlen(&line, 0);
line              432 daemon.c       	strbuf_release(&line);
line              674 daemon.c       	char *line = packet_buffer;
line              688 daemon.c       	len = strlen(line);
line              692 daemon.c       			(int) pktlen - len, line + len + 1);
line              693 daemon.c       	if (len && line[len-1] == '\n') {
line              694 daemon.c       		line[--len] = 0;
line              699 daemon.c       		parse_host_arg(&hi, line + len + 1, pktlen - len - 1);
line              705 daemon.c       		if (skip_prefix(line, "git-", &arg) &&
line              719 daemon.c       	logerror("Protocol error: '%s'", line);
line              335 diff.c         typedef unsigned long (*sane_truncate_fn)(char *line, unsigned long len);
line              445 diff.c         			int first, const char *line, int len)
line              459 diff.c         		has_trailing_newline = (len > 0 && line[len-1] == '\n');
line              462 diff.c         		has_trailing_carriage_return = (len > 0 && line[len-1] == '\r');
line              472 diff.c         		fwrite(line, len, 1, file);
line              482 diff.c         		      const char *line, int len)
line              484 diff.c         	emit_line_0(o, set, reset, line[0], line+1, len-1);
line              487 diff.c         static int new_blank_line_at_eof(struct emit_callback *ecbdata, const char *line, int len)
line              495 diff.c         	return ws_blank_line(line, len, ecbdata->ws_rule);
line              500 diff.c         			      const char *line, int len,
line              515 diff.c         		emit_line_0(ecbdata->opt, set, reset, sign, line, len);
line              516 diff.c         	else if (sign == '+' && new_blank_line_at_eof(ecbdata, line, len))
line              518 diff.c         		emit_line_0(ecbdata->opt, ws, reset, sign, line, len);
line              522 diff.c         		ws_check_emit(line, len, ecbdata->ws_rule,
line              529 diff.c         			  const char *line, int len)
line              531 diff.c         	emit_line_checked(reset, ecbdata, line, len,
line              537 diff.c         			  const char *line, int len)
line              539 diff.c         	emit_line_checked(reset, ecbdata, line, len,
line              545 diff.c         			      const char *line, int len)
line              547 diff.c         	emit_line_checked(reset, ecbdata, line, len,
line              552 diff.c         			     const char *line, int len)
line              569 diff.c         	    memcmp(line, atat, 2) ||
line              570 diff.c         	    !(ep = memmem(line + 2, len - 2, atat, 2))) {
line              571 diff.c         		emit_line(ecbdata->opt, context, reset, line, len);
line              578 diff.c         	strbuf_add(&msgbuf, line, ep - line);
line              585 diff.c         		if (line[len - i] == '\r' || line[len - i] == '\n')
line              589 diff.c         	for (cp = ep; ep - line < len; ep++)
line              598 diff.c         	if (ep < line + len) {
line              600 diff.c         		strbuf_add(&msgbuf, ep, line + len - ep);
line              604 diff.c         	strbuf_add(&msgbuf, line + len, org_len - len);
line              763 diff.c         static void diff_words_append(char *line, unsigned long len,
line              767 diff.c         	line++;
line              769 diff.c         	memcpy(buffer->text.ptr + buffer->text.size, line, len);
line              880 diff.c         static void fn_out_diff_words_aux(void *priv, char *line, unsigned long len)
line              889 diff.c         	if (line[0] != '@' || parse_hunk_header(line, len,
line             1168 diff.c         static unsigned long sane_truncate_line(struct emit_callback *ecb, char *line, unsigned long len)
line             1175 diff.c         		return ecb->truncate(line, len);
line             1176 diff.c         	cp = line;
line             1186 diff.c         static void find_lno(const char *line, struct emit_callback *ecbdata)
line             1191 diff.c         	p = strchr(line, '-');
line             1201 diff.c         static void fn_out_consume(void *priv, char *line, unsigned long len)
line             1231 diff.c         	    && len == 2 && line[0] == ' ' && line[1] == '\n') {
line             1232 diff.c         		line[0] = '\n';
line             1236 diff.c         	if (line[0] == '@') {
line             1239 diff.c         		len = sane_truncate_line(ecbdata, line, len);
line             1240 diff.c         		find_lno(line, ecbdata);
line             1241 diff.c         		emit_hunk_header(ecbdata, line, len);
line             1242 diff.c         		if (line[len-1] != '\n')
line             1248 diff.c         		emit_line(ecbdata->opt, reset, reset, line, len);
line             1256 diff.c         		if (line[0] == '-') {
line             1257 diff.c         			diff_words_append(line, len,
line             1260 diff.c         		} else if (line[0] == '+') {
line             1261 diff.c         			diff_words_append(line, len,
line             1264 diff.c         		} else if (starts_with(line, "\\ ")) {
line             1276 diff.c         			emit_line(ecbdata->opt, context, reset, line, len);
line             1284 diff.c         			if (line[0] != '\n') {
line             1285 diff.c         			      line++;
line             1288 diff.c         			emit_line(ecbdata->opt, context, reset, line, len);
line             1293 diff.c         	switch (line[0]) {
line             1296 diff.c         		emit_add_line(reset, ecbdata, line + 1, len - 1);
line             1300 diff.c         		emit_del_line(reset, ecbdata, line + 1, len - 1);
line             1305 diff.c         		emit_context_line(reset, ecbdata, line + 1, len - 1);
line             1312 diff.c         			  reset, line, len);
line             1431 diff.c         static void diffstat_consume(void *priv, char *line, unsigned long len)
line             1436 diff.c         	if (line[0] == '+')
line             1438 diff.c         	else if (line[0] == '-')
line             2071 diff.c         static int is_conflict_marker(const char *line, int marker_size, unsigned long len)
line             2078 diff.c         	firstchar = line[0];
line             2086 diff.c         		if (line[cnt] != firstchar)
line             2089 diff.c         	if (len < marker_size + 1 || !isspace(line[marker_size]))
line             2094 diff.c         static void checkdiff_consume(void *priv, char *line, unsigned long len)
line             2107 diff.c         	if (line[0] == '+') {
line             2110 diff.c         		if (is_conflict_marker(line + 1, marker_size, len - 1)) {
line             2116 diff.c         		bad = ws_check(line + 1, len - 1, data->ws_rule);
line             2124 diff.c         		emit_line(data->o, set, reset, line, 1);
line             2125 diff.c         		ws_check_emit(line + 1, len - 1, data->ws_rule,
line             2127 diff.c         	} else if (line[0] == ' ') {
line             2129 diff.c         	} else if (line[0] == '@') {
line             2130 diff.c         		char *plus = strchr(line, '+');
line             2207 diff.c         		char line[70];
line             2210 diff.c         			line[0] = bytes + 'A' - 1;
line             2212 diff.c         			line[0] = bytes - 26 + 'a' - 1;
line             2213 diff.c         		encode_85(line + 1, cp, bytes);
line             2216 diff.c         		fputs(line, file);
line             4406 diff.c         static int remove_space(char *line, int len)
line             4409 diff.c         	char *dst = line;
line             4413 diff.c         		if (!isspace((c = line[i])))
line             4416 diff.c         	return dst - line;
line             4419 diff.c         static void patch_id_consume(void *priv, char *line, unsigned long len)
line             4425 diff.c         	if (starts_with(line, "@@ -"))
line             4428 diff.c         	new_len = remove_space(line, len);
line             4430 diff.c         	git_SHA1_Update(data->ctx, line, new_len);
line               20 diffcore-pickaxe.c static void diffgrep_consume(void *priv, char *line, unsigned long len)
line               26 diffcore-pickaxe.c 	if (line[0] != '+' && line[0] != '-')
line               35 diffcore-pickaxe.c 	hold = line[len];
line               36 diffcore-pickaxe.c 	line[len] = '\0';
line               37 diffcore-pickaxe.c 	data->hit = !regexec(data->regexp, line + 1, 1, &regmatch, 0);
line               38 diffcore-pickaxe.c 	line[len] = hold;
line             1832 fast-import.c  	char line[512];
line             1840 fast-import.c  	while (fgets(line, sizeof(line), f)) {
line             1846 fast-import.c  		end = strchr(line, '\n');
line             1847 fast-import.c  		if (line[0] != ':' || !end)
line             1848 fast-import.c  			die("corrupt mark line: %s", line);
line             1850 fast-import.c  		mark = strtoumax(line + 1, &end, 10);
line             1851 fast-import.c  		if (!mark || end == line + 1
line             1853 fast-import.c  			die("corrupt mark line: %s", line);
line             2892 fast-import.c  	struct strbuf line = STRBUF_INIT;
line             2908 fast-import.c  		strbuf_reset(&line);
line             2909 fast-import.c  		strbuf_addf(&line, "%s missing\n", sha1_to_hex(sha1));
line             2910 fast-import.c  		cat_blob_write(line.buf, line.len);
line             2911 fast-import.c  		strbuf_release(&line);
line             2920 fast-import.c  	strbuf_reset(&line);
line             2921 fast-import.c  	strbuf_addf(&line, "%s %s %lu\n", sha1_to_hex(sha1),
line             2923 fast-import.c  	cat_blob_write(line.buf, line.len);
line             2924 fast-import.c  	strbuf_release(&line);
line             3051 fast-import.c  	static struct strbuf line = STRBUF_INIT;
line             3061 fast-import.c  		strbuf_reset(&line);
line             3062 fast-import.c  		strbuf_addstr(&line, "missing ");
line             3063 fast-import.c  		quote_c_style(path, &line, NULL, 0);
line             3064 fast-import.c  		strbuf_addch(&line, '\n');
line             3067 fast-import.c  		strbuf_reset(&line);
line             3068 fast-import.c  		strbuf_addf(&line, "%06o %s %s\t",
line             3070 fast-import.c  		quote_c_style(path, &line, NULL, 0);
line             3071 fast-import.c  		strbuf_addch(&line, '\n');
line             3073 fast-import.c  	cat_blob_write(line.buf, line.len);
line              190 fetch-pack.c   		char *line;
line              191 fetch-pack.c   		while ((line = packet_read_line(fd, NULL))) {
line              192 fetch-pack.c   			if (starts_with(line, "shallow "))
line              194 fetch-pack.c   			if (starts_with(line, "unshallow "))
line              204 fetch-pack.c   	char *line = packet_read_line(fd, &len);
line              209 fetch-pack.c   	if (!strcmp(line, "NAK"))
line              211 fetch-pack.c   	if (skip_prefix(line, "ACK ", &arg)) {
line              214 fetch-pack.c   			len -= arg - line;
line              226 fetch-pack.c   	die("git fetch_pack: expected ACK/NAK, got '%s'", line);
line              337 fetch-pack.c   		char *line;
line              342 fetch-pack.c   		while ((line = packet_read_line(fd[0], NULL))) {
line              343 fetch-pack.c   			if (skip_prefix(line, "shallow ", &arg)) {
line              345 fetch-pack.c   					die("invalid shallow line: %s", line);
line              349 fetch-pack.c   			if (skip_prefix(line, "unshallow ", &arg)) {
line              351 fetch-pack.c   					die("invalid unshallow line: %s", line);
line              353 fetch-pack.c   					die("object not found: %s", line);
line              356 fetch-pack.c   					die("error in object: %s", line);
line              358 fetch-pack.c   					die("no shallow found: %s", line);
line              361 fetch-pack.c   			die("expected shallow/unshallow, got %s", line);
line              338 grep.c         static int pcrematch(struct grep_pat *p, const char *line, const char *eol,
line              346 grep.c         	ret = pcre_exec(p->pcre_regexp, p->pcre_extra_info, line, eol - line,
line              370 grep.c         static int pcrematch(struct grep_pat *p, const char *line, const char *eol,
line              836 grep.c         static int fixmatch(struct grep_pat *p, char *line, char *eol,
line              840 grep.c         	size_t offset = kwsexec(p->kws, line, eol - line, &kwsm);
line              851 grep.c         static int regmatch(const regex_t *preg, char *line, char *eol,
line              856 grep.c         	match->rm_eo = eol - line;
line              859 grep.c         	return regexec(preg, line, 1, match, eflags);
line              862 grep.c         static int patmatch(struct grep_pat *p, char *line, char *eol,
line              868 grep.c         		hit = !fixmatch(p, line, eol, match);
line              870 grep.c         		hit = !pcrematch(p, line, eol, match, eflags);
line              872 grep.c         		hit = !regmatch(&p->regexp, line, eol, match, eflags);
line              201 ident.c        int split_ident_line(struct ident_split *split, const char *line, int len)
line              209 ident.c        	split->name_begin = line;
line              210 ident.c        	for (cp = line; *cp && cp < line + len; cp++)
line              218 ident.c        	for (cp = split->mail_begin - 2; line <= cp; cp--)
line              228 ident.c        	for (cp = split->mail_begin; cp < line + len; cp++)
line              247 ident.c        	for (cp = line + len - 1; *cp != '>'; cp--)
line              250 ident.c        	for (cp = cp + 1; cp < line + len && isspace(*cp); cp++)
line              252 ident.c        	if (line + len <= cp)
line              259 ident.c        	for (cp = split->date_end; cp < line + len && isspace(*cp); cp++)
line              261 ident.c        	if (line + len <= cp || (*cp != '+' && *cp != '-'))
line              547 line-log.c     static const char *nth_line(void *data, long line)
line              550 line-log.c     	assert(d && line <= d->lines);
line              553 line-log.c     	if (line == 0)
line              556 line-log.c     		return (char *)d->spec->data + d->line_ends[line] + 1;
line              838 line-log.c     static char *get_nth_line(long line, unsigned long *ends, void *data)
line              840 line-log.c     	if (line == 0)
line              843 line-log.c     		return (char *)data + ends[line] + 1;
line              847 line-log.c     		       long line, unsigned long *ends, void *data,
line              850 line-log.c     	char *begin = get_nth_line(line, ends, data);
line              851 line-log.c     	char *end = get_nth_line(line+1, ends, data);
line               26 line-range.c   	const char *line;
line               92 line-range.c   	line = nth_line(data, begin);
line               95 line-range.c   	    !(reg_error = regexec(&regexp, line, 1, match, 0))) {
line               96 line-range.c   		const char *cp = line + match[0].rm_so;
line              101 line-range.c   			if (line <= cp && cp < nline)
line              103 line-range.c   			line = nline;
line              337 pretty.c       static int needs_rfc2047_encoding(const char *line, int len,
line              343 pretty.c       		int ch = line[i];
line              346 pretty.c       		if ((i + 1 < len) && (ch == '=' && line[i+1] == '?'))
line              353 pretty.c       static void add_rfc2047(struct strbuf *sb, const char *line, size_t len,
line              372 pretty.c       		const unsigned char *p = (const unsigned char *)line;
line              373 pretty.c       		int chrlen = mbs_chrlen(&line, &len, encoding);
line              422 pretty.c       		  const char *line, const char *encoding)
line              433 pretty.c       	line_end = strchrnul(line, '\n');
line              434 pretty.c       	if (split_ident_line(&ident, line, line_end - line))
line              508 pretty.c       static int is_empty_line(const char *line, int *len_p)
line              511 pretty.c       	while (len && isspace(line[len - 1]))
line              872 pretty.c       		const char *line = msg;
line              873 pretty.c       		int linelen = get_one_line(line);
line              876 pretty.c       		if (!linelen || is_empty_line(line, &linelen))
line              884 pretty.c       		strbuf_add(sb, line, linelen);
line             1521 pretty.c       		const char *name, *line = *msg_p;
line             1533 pretty.c       			strbuf_add(sb, line, linelen);
line             1537 pretty.c       		if (starts_with(line, "parent ")) {
line             1556 pretty.c       		if (skip_prefix(line, "author ", &name)) {
line             1560 pretty.c       		if (skip_prefix(line, "committer ", &name) &&
line             1639 pretty.c       		const char *line = *msg_p;
line             1640 pretty.c       		int linelen = get_one_line(line);
line             1646 pretty.c       		if (is_empty_line(line, &linelen)) {
line             1657 pretty.c       		strbuf_add(sb, line, linelen);
line             1172 refs.c         static const char *parse_ref_line(struct strbuf *line, unsigned char *sha1)
line             1184 refs.c         	if (line->len <= 42)
line             1187 refs.c         	if (get_sha1_hex(line->buf, sha1) < 0)
line             1189 refs.c         	if (!isspace(line->buf[40]))
line             1192 refs.c         	ref = line->buf + 41;
line             1196 refs.c         	if (line->buf[line->len - 1] != '\n')
line             1198 refs.c         	line->buf[--line->len] = 0;
line             1233 refs.c         	struct strbuf line = STRBUF_INIT;
line             1236 refs.c         	while (strbuf_getwholeline(&line, f, '\n') != EOF) {
line             1241 refs.c         		if (skip_prefix(line.buf, "# pack-refs with:", &traits)) {
line             1250 refs.c         		refname = parse_ref_line(&line, sha1);
line             1268 refs.c         		    line.buf[0] == '^' &&
line             1269 refs.c         		    line.len == PEELED_LINE_LENGTH &&
line             1270 refs.c         		    line.buf[PEELED_LINE_LENGTH - 1] == '\n' &&
line             1271 refs.c         		    !get_sha1_hex(line.buf + 1, sha1)) {
line             1282 refs.c         	strbuf_release(&line);
line              296 remote-curl.c  		char *line;
line              302 remote-curl.c  		line = packet_read_line_buf(&last->buf, &last->len, NULL);
line              306 remote-curl.c  		if (strcmp(line, exp.buf))
line              307 remote-curl.c  			die("invalid server response; got '%s'", line);
line               19 remote-testsvn.c static int cmd_capabilities(const char *line);
line               20 remote-testsvn.c static int cmd_import(const char *line);
line               21 remote-testsvn.c static int cmd_list(const char *line);
line               37 remote-testsvn.c static int cmd_capabilities(const char *line)
line              141 remote-testsvn.c 	struct strbuf line = STRBUF_INIT;
line              157 remote-testsvn.c 		while (strbuf_getline(&line, marksfile, '\n') != EOF) {
line              158 remote-testsvn.c 			if (starts_with(line.buf, sb.buf)) {
line              169 remote-testsvn.c 	strbuf_release(&line);
line              172 remote-testsvn.c static int cmd_import(const char *line)
line              234 remote-testsvn.c static int cmd_list(const char *line)
line              241 remote-testsvn.c static int do_command(struct strbuf *line)
line              252 remote-testsvn.c 	if (line->len == 0) {
line              265 remote-testsvn.c 		if (!starts_with(batch_cmd->name, line->buf))
line              266 remote-testsvn.c 			die("Active %s batch interrupted by %s", batch_cmd->name, line->buf);
line              268 remote-testsvn.c 		string_list_append(&batchlines, line->buf);
line              273 remote-testsvn.c 		if (starts_with(line->buf, p->name) && (strlen(p->name) == line->len ||
line              274 remote-testsvn.c 				line->buf[strlen(p->name)] == ' ')) {
line              277 remote-testsvn.c 				string_list_append(&batchlines, line->buf);
line              280 remote-testsvn.c 			return p->fn(line->buf);
line              283 remote-testsvn.c 	die("Unknown command '%s'\n", line->buf);
line              138 send-pack.c    	char *line = packet_read_line(in, NULL);
line              139 send-pack.c    	if (!starts_with(line, "unpack "))
line              141 send-pack.c    	if (strcmp(line, "unpack ok")) {
line              142 send-pack.c    		error("unpack failed: %s", line + 7);
line              149 send-pack.c    		line = packet_read_line(in, NULL);
line              150 send-pack.c    		if (!line)
line              152 send-pack.c    		if (!starts_with(line, "ok ") && !starts_with(line, "ng ")) {
line              153 send-pack.c    			error("invalid ref status from remote: %s", line);
line              158 send-pack.c    		refname = line + 3;
line              179 send-pack.c    		if (line[0] == 'o' && line[1] == 'k')
line              249 send-pack.c    static const char *next_line(const char *line, size_t len)
line              251 send-pack.c    	const char *nl = memchr(line, '\n', len);
line              253 send-pack.c    		return line + len; /* incomplete line */
line              112 server-info.c  static int parse_pack_def(const char *line, int old_cnt)
line              114 server-info.c  	struct pack_info *i = find_pack_by_name(line + 2);
line              131 server-info.c  	char line[1000];
line              138 server-info.c  	while (fgets(line, sizeof(line), fp)) {
line              139 server-info.c  		int len = strlen(line);
line              140 server-info.c  		if (len && line[len-1] == '\n')
line              141 server-info.c  			line[--len] = 0;
line              146 server-info.c  		switch (line[0]) {
line              148 server-info.c  			if (parse_pack_def(line, old_cnt++))
line              155 server-info.c  			error("unrecognized: %s", line);
line              414 sha1_file.c    		struct strbuf line = STRBUF_INIT;
line              417 sha1_file.c    		while (strbuf_getline(&line, in, '\n') != EOF) {
line              418 sha1_file.c    			if (!strcmp(reference, line.buf)) {
line              422 sha1_file.c    			fprintf_or_die(out, "%s\n", line.buf);
line              425 sha1_file.c    		strbuf_release(&line);
line               81 shell.c        		struct strbuf line = STRBUF_INIT;
line               91 shell.c        		if (strbuf_getline(&line, stdin, '\n') == EOF) {
line               93 shell.c        			strbuf_release(&line);
line               96 shell.c        		strbuf_trim(&line);
line               97 shell.c        		rawargs = strbuf_detach(&line, NULL);
line              752 strbuf.c       static size_t cleanup(char *line, size_t len)
line              755 strbuf.c       		unsigned char c = line[len - 1];
line              724 submodule.c    	const char *line, *next_line;
line              752 submodule.c    	line = buf.buf;
line              754 submodule.c    		if ((line[0] == '?') && (line[1] == '?')) {
line              764 submodule.c    		next_line = strchr(line, '\n');
line              768 submodule.c    		len -= (next_line - line);
line              769 submodule.c    		line = next_line;
line              143 test-hashmap.c 	char line[1024];
line              153 test-hashmap.c 	while (fgets(line, sizeof(line), stdin)) {
line              159 test-hashmap.c 		cmd = strtok(line, DELIM);
line               45 test-line-buffer.c static void handle_line(const char *line, struct line_buffer *stdin_buf)
line               47 test-line-buffer.c 	const char *arg = strchr(line, ' ');
line               49 test-line-buffer.c 		die("no argument in line: %s", line);
line               50 test-line-buffer.c 	handle_command(line, arg + 1, stdin_buf);
line                6 test-mergesort.c 	struct line *next;
line               11 test-mergesort.c 	return ((const struct line *)a)->next;
line               16 test-mergesort.c 	((struct line *)a)->next = b;
line               21 test-mergesort.c 	const struct line *x = a, *y = b;
line               27 test-mergesort.c 	struct line *line, *p = NULL, *lines = NULL;
line               33 test-mergesort.c 		line = xmalloc(sizeof(struct line));
line               34 test-mergesort.c 		line->text = strbuf_detach(&sb, NULL);
line               36 test-mergesort.c 			line->next = p->next;
line               37 test-mergesort.c 			p->next = line;
line               39 test-mergesort.c 			line->next = NULL;
line               40 test-mergesort.c 			lines = line;
line               42 test-mergesort.c 		p = line;
line               12 test-sha1-array.c 	struct strbuf line = STRBUF_INIT;
line               14 test-sha1-array.c 	while (strbuf_getline(&line, stdin, '\n') != EOF) {
line               18 test-sha1-array.c 		if (skip_prefix(line.buf, "append ", &arg)) {
line               22 test-sha1-array.c 		} else if (skip_prefix(line.buf, "lookup ", &arg)) {
line               26 test-sha1-array.c 		} else if (!strcmp(line.buf, "clear"))
line               28 test-sha1-array.c 		else if (!strcmp(line.buf, "for_each_unique"))
line               31 test-sha1-array.c 			die("unknown command: %s", line.buf);
line               88 trace.c        static int prepare_trace_line(const char *file, int line,
line              114 trace.c        	strbuf_addf(buf, "%s:%d ", file, line);
line              138 trace.c        static void trace_vprintf_fl(const char *file, int line, struct trace_key *key,
line              143 trace.c        	if (!prepare_trace_line(file, line, key, &buf))
line              150 trace.c        static void trace_argv_vprintf_fl(const char *file, int line,
line              156 trace.c        	if (!prepare_trace_line(file, line, NULL, &buf))
line              165 trace.c        void trace_strbuf_fl(const char *file, int line, struct trace_key *key,
line              170 trace.c        	if (!prepare_trace_line(file, line, key, &buf))
line              179 trace.c        static void trace_performance_vprintf_fl(const char *file, int line,
line              185 trace.c        	if (!prepare_trace_line(file, line, &trace_perf_key, &buf))
line              248 trace.c        void trace_printf_key_fl(const char *file, int line, struct trace_key *key,
line              253 trace.c        	trace_vprintf_fl(file, line, key, format, ap);
line              257 trace.c        void trace_argv_printf_fl(const char *file, int line, const char **argv,
line              262 trace.c        	trace_argv_vprintf_fl(file, line, argv, format, ap);
line              266 trace.c        void trace_performance_fl(const char *file, int line, uint64_t nanos,
line              271 trace.c        	trace_performance_vprintf_fl(file, line, nanos, format, ap);
line              101 trace.h        extern void trace_printf_key_fl(const char *file, int line, struct trace_key *key,
line              104 trace.h        extern void trace_argv_printf_fl(const char *file, int line, const char **argv,
line              106 trace.h        extern void trace_strbuf_fl(const char *file, int line, struct trace_key *key,
line              109 trace.h        extern void trace_performance_fl(const char *file, int line,
line              386 upload-pack.c  		char *line = packet_read_line(0, NULL);
line              389 upload-pack.c  		if (!line) {
line              408 upload-pack.c  		if (starts_with(line, "have ")) {
line              409 upload-pack.c  			switch (got_sha1(line+5, sha1)) {
line              434 upload-pack.c  		if (!strcmp(line, "done")) {
line              443 upload-pack.c  		die("git upload-pack: expected SHA1 list, got '%s'", line);
line              554 upload-pack.c  		char *line = packet_read_line(0, NULL);
line              556 upload-pack.c  		if (!line)
line              559 upload-pack.c  		if (starts_with(line, "shallow ")) {
line              562 upload-pack.c  			if (get_sha1_hex(line + 8, sha1))
line              563 upload-pack.c  				die("invalid shallow line: %s", line);
line              575 upload-pack.c  		if (starts_with(line, "deepen ")) {
line              577 upload-pack.c  			depth = strtol(line + 7, &end, 0);
line              578 upload-pack.c  			if (end == line + 7 || depth <= 0)
line              579 upload-pack.c  				die("Invalid deepen: %s", line);
line              582 upload-pack.c  		if (!starts_with(line, "want ") ||
line              583 upload-pack.c  		    get_sha1_hex(line+5, sha1_buf))
line              585 upload-pack.c  			    "expected to get sha, not '%s'", line);
line              587 upload-pack.c  		features = line + 45;
line              150 vcs-svn/fast_export.c 	const char *line = buffer_read_line(&report_buffer);
line              151 vcs-svn/fast_export.c 	if (line)
line              152 vcs-svn/fast_export.c 		return line;
line              150 ws.c           static unsigned ws_check_emit_1(const char *line, int len, unsigned ws_rule,
line              162 ws.c           	if (len > 0 && line[len - 1] == '\n') {
line              167 ws.c           	    len > 0 && line[len - 1] == '\r') {
line              175 ws.c           			if (isspace(line[i])) {
line              189 ws.c           		if (line[i] == ' ')
line              191 ws.c           		if (line[i] != '\t')
line              197 ws.c           				fwrite(line + written, i - written, 1, stream);
line              199 ws.c           				fwrite(line + i, 1, 1, stream);
line              204 ws.c           				fwrite(line + written, i - written, 1, stream);
line              206 ws.c           				fwrite(line + i, 1, 1, stream);
line              210 ws.c           			fwrite(line + written, i - written + 1, 1, stream);
line              220 ws.c           			fwrite(line + written, i - written, 1, stream);
line              235 ws.c           			fwrite(line + written,
line              243 ws.c           			fwrite(line + trailing_whitespace,
line              255 ws.c           void ws_check_emit(const char *line, int len, unsigned ws_rule,
line              259 ws.c           	(void)ws_check_emit_1(line, len, ws_rule, stream, set, reset, ws);
line              262 ws.c           unsigned ws_check(const char *line, int len, unsigned ws_rule)
line              264 ws.c           	return ws_check_emit_1(line, len, ws_rule, NULL, NULL, NULL, NULL);
line              267 ws.c           int ws_blank_line(const char *line, int len, unsigned ws_rule)
line              275 ws.c           		if (!isspace(*line))
line              277 ws.c           		line++;
line               49 wt-status.c    	const char *line, *eol;
line               64 wt-status.c    	for (line = sb.buf; *line; line = eol + 1) {
line               65 wt-status.c    		eol = strchr(line, '\n');
line               70 wt-status.c    			if (*line != '\n' && *line != '\t')
line               74 wt-status.c    			strbuf_add(&linebuf, line, eol - line);
line               76 wt-status.c    			strbuf_addstr(&linebuf, line);
line             1038 wt-status.c    static void abbrev_sha1_in_line(struct strbuf *line)
line             1043 wt-status.c    	if (starts_with(line->buf, "exec ") ||
line             1044 wt-status.c    	    starts_with(line->buf, "x "))
line             1047 wt-status.c    	split = strbuf_split_max(line, ' ', 3);
line             1061 wt-status.c    			strbuf_reset(line);
line             1063 wt-status.c    				strbuf_addf(line, "%s", split[i]->buf);
line             1073 wt-status.c    	struct strbuf line = STRBUF_INIT;
line             1079 wt-status.c    	while (!strbuf_getline(&line, f, '\n')) {
line             1080 wt-status.c    		if (line.len && line.buf[0] == comment_line_char)
line             1082 wt-status.c    		strbuf_trim(&line);
line             1083 wt-status.c    		if (!line.len)
line             1085 wt-status.c    		abbrev_sha1_in_line(&line);
line             1086 wt-status.c    		string_list_append(lines, line.buf);
line               28 xdiff-interface.c int parse_hunk_header(char *line, int len,
line               33 xdiff-interface.c 	cp = line + 4;
line               36 xdiff-interface.c 		return error("malformed diff output: %s", line);
line              216 xdiff-interface.c static long ff_regexp(const char *line, long len,
line              226 xdiff-interface.c 	if (len > 0 && line[len-1] == '\n') {
line              227 xdiff-interface.c 		if (len > 1 && line[len-2] == '\r')
line              233 xdiff-interface.c 	line_buffer = xstrndup(line, len); /* make NUL terminated */
line              246 xdiff-interface.c 	line += pmatch[i].rm_so;
line              250 xdiff-interface.c 	while (result > 0 && (isspace(line[result - 1])))
line              252 xdiff-interface.c 	memcpy(buffer, line, result);
line               19 xdiff-interface.h int parse_hunk_header(char *line, int len,
line               26 xdiff-interface.h extern void xdiff_set_find_func(xdemitconf_t *xecfg, const char *line, int cflags);
line               89 xdiff/xdiff.h  typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long buffer_size, void *priv);
line               51 xdiff/xhistogram.c #define LINE_END(n) (line##n + count##n - 1)
line               52 xdiff/xhistogram.c #define LINE_END_PTR(n) (*line##n + *count##n - 1)
line              107 xdiff/xhistogram.c #define TABLE_HASH(index, side, line) \
line              108 xdiff/xhistogram.c 	XDL_HASHLONG((REC(index->env, side, line))->ha, index->table_bits)
line               74 xdiff/xpatience.c static void insert_record(int line, struct hashmap *map, int pass)
line               78 xdiff/xpatience.c 	xrecord_t *record = records[line - 1], *other;
line              106 xdiff/xpatience.c 			map->entries[index].line2 = line;
line              111 xdiff/xpatience.c 	map->entries[index].line1 = line;
line               36 xdiff/xprepare.c 	char const *line;
line              113 xdiff/xprepare.c 	char const *line;
line              117 xdiff/xprepare.c 	line = rec->ptr;
line              121 xdiff/xprepare.c 				xdl_recmatch(rcrec->line, rcrec->size,
line              140 xdiff/xprepare.c 		rcrec->line = line;
line              146 xdiff/xutils.c int xdl_blankline(const char *line, long size, long flags)
line              153 xdiff/xutils.c 	for (i = 0; i < size && XDL_ISSPACE(line[i]); i++)
line               35 xdiff/xutils.h int xdl_blankline(const char *line, long size, long flags);