commit             25 alloc.c        	struct commit commit;
commit             93 alloc.c        	struct commit *c = alloc_node(&commit_state, sizeof(struct commit));
commit            112 alloc.c        	REPORT(commit, struct commit);
commit             30 archive.c      static void format_subst(const struct commit *commit,
commit             56 archive.c      		format_commit_message(commit, fmt.buf, buf, &ctx);
commit             71 archive.c      	const struct commit *commit = args->convert ? args->commit : NULL;
commit             81 archive.c      		if (commit)
commit             82 archive.c      			format_subst(commit, buf.buf, buf.len, &buf);
commit            357 archive.c      	const struct commit *commit;
commit            374 archive.c      	commit = lookup_commit_reference_gently(oid.hash, 1);
commit            375 archive.c      	if (commit) {
commit            376 archive.c      		commit_sha1 = commit->object.sha1;
commit            377 archive.c      		archive_time = commit->date;
commit            401 archive.c      	ar_args->commit = commit;
commit             11 archive.h      	const struct commit *commit;
commit             41 bisect.c       		struct commit *commit = entry->item;
commit             44 bisect.c       		if (commit->object.flags & (UNINTERESTING | COUNTED))
commit             46 bisect.c       		if (!(commit->object.flags & TREESAME))
commit             48 bisect.c       		commit->object.flags |= COUNTED;
commit             49 bisect.c       		p = commit->parents;
commit             66 bisect.c       		struct commit *commit = list->item;
commit             67 bisect.c       		commit->object.flags &= ~COUNTED;
commit             84 bisect.c       static int count_interesting_parents(struct commit *commit)
commit             89 bisect.c       	for (count = 0, p = commit->parents; p; p = p->next) {
commit            130 bisect.c       		struct commit *commit = p->item;
commit            131 bisect.c       		unsigned flags = commit->object.flags;
commit            134 bisect.c       		char *buf = read_sha1_file(commit->object.sha1, &type, &size);
commit            142 bisect.c       		if (commit->util)
commit            146 bisect.c       		fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.sha1));
commit            147 bisect.c       		for (pp = commit->parents; pp; pp = pp->next)
commit            184 bisect.c       	struct commit *commit;
commit            196 bisect.c       	return hashcmp(a->commit->object.sha1, b->commit->object.sha1);
commit            214 bisect.c       		array[cnt].commit = p->item;
commit            221 bisect.c       		struct object *obj = &(array[i].commit->object);
commit            226 bisect.c       		p->item = array[i].commit;
commit            258 bisect.c       		struct commit *commit = p->item;
commit            259 bisect.c       		unsigned flags = commit->object.flags;
commit            262 bisect.c       		switch (count_interesting_parents(commit)) {
commit            701 bisect.c       static struct commit *get_commit_reference(const unsigned char *sha1)
commit            703 bisect.c       	struct commit *r = lookup_commit_reference(sha1);
commit            709 bisect.c       static struct commit **get_bad_and_good_commits(int *rev_nr)
commit            712 bisect.c       	struct commit **rev = xmalloc(len * sizeof(*rev));
commit            777 bisect.c       	struct commit **rev = get_bad_and_good_commits(&rev_nr);
commit            869 bisect.c       static void show_diff_tree(const char *prefix, struct commit *commit)
commit            888 bisect.c       	log_tree_commit(&opt, commit);
commit            213 branch.c       	struct commit *commit;
commit            267 branch.c       	if ((commit = lookup_commit_reference(sha1)) == NULL)
commit            269 branch.c       	hashcpy(sha1, commit->object.sha1);
commit           1400 builtin/am.c   static void get_commit_info(struct am_state *state, struct commit *commit)
commit           1407 builtin/am.c   	buffer = logmsg_reencode(commit, NULL, get_commit_output_encoding());
commit           1440 builtin/am.c   		die(_("unable to parse commit %s"), sha1_to_hex(commit->object.sha1));
commit           1448 builtin/am.c   static void write_commit_patch(const struct am_state *state, struct commit *commit)
commit           1466 builtin/am.c   	add_pending_object(&rev_info, &commit->object, "");
commit           1468 builtin/am.c   	log_tree_commit(&rev_info, commit);
commit           1512 builtin/am.c   	struct commit *commit;
commit           1518 builtin/am.c   	commit = lookup_commit_or_die(commit_sha1, mail);
commit           1520 builtin/am.c   	get_commit_info(state, commit);
commit           1522 builtin/am.c   	write_commit_patch(state, commit);
commit           1698 builtin/am.c   		      commit[GIT_SHA1_RAWSZ];
commit           1726 builtin/am.c   	if (commit_tree(state->msg, state->msg_len, tree, parents, commit,
commit           1737 builtin/am.c   	update_ref(sb.buf, "HEAD", commit, ptr, 0, UPDATE_REFS_DIE_ON_ERR);
commit           1744 builtin/am.c   		fprintf(fp, "%s\n", sha1_to_hex(commit));
commit            111 builtin/blame.c 	struct commit *commit;
commit            220 builtin/blame.c 		for (p = o->commit->util; p; l = p, p = p->next) {
commit            225 builtin/blame.c 					o->commit->util = p->next;
commit            380 builtin/blame.c 	struct commit *final;
commit            442 builtin/blame.c 		for (o = porigin->commit->util; o; o = o->next) {
commit            449 builtin/blame.c 		prio_queue_put(&sb->commits, porigin->commit);
commit            459 builtin/blame.c static struct origin *make_origin(struct commit *commit, const char *path)
commit            463 builtin/blame.c 	o->commit = commit;
commit            465 builtin/blame.c 	o->next = commit->util;
commit            466 builtin/blame.c 	commit->util = o;
commit            476 builtin/blame.c 				 struct commit *commit,
commit            481 builtin/blame.c 	for (o = commit->util, l = NULL; o; l = o, o = o->next) {
commit            486 builtin/blame.c 				o->next = commit->util;
commit            487 builtin/blame.c 				commit->util = o;
commit            492 builtin/blame.c 	return make_origin(commit, path);
commit            508 builtin/blame.c 	if (get_tree_entry(origin->commit->object.sha1,
commit            526 builtin/blame.c 				  struct commit *parent,
commit            559 builtin/blame.c 	if (is_null_sha1(origin->commit->object.sha1))
commit            563 builtin/blame.c 			       origin->commit->tree->object.sha1,
commit            615 builtin/blame.c 				  struct commit *parent,
commit            629 builtin/blame.c 	if (is_null_sha1(origin->commit->object.sha1))
commit            633 builtin/blame.c 			       origin->commit->tree->object.sha1,
commit            979 builtin/blame.c 		    sha1_to_hex(parent->commit->object.sha1),
commit            980 builtin/blame.c 		    sha1_to_hex(target->commit->object.sha1));
commit           1128 builtin/blame.c 		    sha1_to_hex(parent->commit->object.sha1));
commit           1245 builtin/blame.c 				struct commit *parent,
commit           1277 builtin/blame.c 	if (is_null_sha1(target->commit->object.sha1))
commit           1281 builtin/blame.c 			       target->commit->tree->object.sha1,
commit           1372 builtin/blame.c static struct commit_list *first_scapegoat(struct rev_info *revs, struct commit *commit)
commit           1376 builtin/blame.c 		    commit->parents &&
commit           1377 builtin/blame.c 		    commit->parents->next) {
commit           1378 builtin/blame.c 			free_commit_list(commit->parents->next);
commit           1379 builtin/blame.c 			commit->parents->next = NULL;
commit           1381 builtin/blame.c 		return commit->parents;
commit           1383 builtin/blame.c 	return lookup_decoration(&revs->children, &commit->object);
commit           1386 builtin/blame.c static int num_scapegoats(struct rev_info *revs, struct commit *commit)
commit           1388 builtin/blame.c 	struct commit_list *l = first_scapegoat(revs, commit);
commit           1419 builtin/blame.c 	struct commit *commit = origin->commit;
commit           1426 builtin/blame.c 	num_sg = num_scapegoats(revs, commit);
commit           1440 builtin/blame.c 				       struct commit *, struct origin *);
commit           1443 builtin/blame.c 		for (i = 0, sg = first_scapegoat(revs, commit);
commit           1446 builtin/blame.c 			struct commit *p = sg->item;
commit           1476 builtin/blame.c 	for (i = 0, sg = first_scapegoat(revs, commit);
commit           1497 builtin/blame.c 			for (i = 0, sg = first_scapegoat(revs, commit);
commit           1524 builtin/blame.c 		for (i = 0, sg = first_scapegoat(revs, commit);
commit           1663 builtin/blame.c static void get_commit_info(struct commit *commit,
commit           1674 builtin/blame.c 	message = logmsg_reencode(commit, NULL, encoding);
commit           1680 builtin/blame.c 		unuse_commit_buffer(commit, message);
commit           1692 builtin/blame.c 		strbuf_addf(&ret->summary, "(%s)", sha1_to_hex(commit->object.sha1));
commit           1694 builtin/blame.c 	unuse_commit_buffer(commit, message);
commit           1717 builtin/blame.c 	if (!repeat && (suspect->commit->object.flags & METAINFO_SHOWN))
commit           1720 builtin/blame.c 	suspect->commit->object.flags |= METAINFO_SHOWN;
commit           1721 builtin/blame.c 	get_commit_info(suspect->commit, &ci, 1);
commit           1731 builtin/blame.c 	if (suspect->commit->object.flags & UNINTERESTING)
commit           1735 builtin/blame.c 		printf("previous %s ", sha1_to_hex(prev->commit->object.sha1));
commit           1754 builtin/blame.c 		       sha1_to_hex(suspect->commit->object.sha1),
commit           1769 builtin/blame.c 	struct commit *commit = prio_queue_get(&sb->commits);
commit           1771 builtin/blame.c 	while (commit) {
commit           1773 builtin/blame.c 		struct origin *suspect = commit->util;
commit           1780 builtin/blame.c 			commit = prio_queue_get(&sb->commits);
commit           1784 builtin/blame.c 		assert(commit == suspect->commit);
commit           1791 builtin/blame.c 		parse_commit(commit);
commit           1793 builtin/blame.c 		    (!(commit->object.flags & UNINTERESTING) &&
commit           1794 builtin/blame.c 		     !(revs->max_age != -1 && commit->date < revs->max_age)))
commit           1797 builtin/blame.c 			commit->object.flags |= UNINTERESTING;
commit           1798 builtin/blame.c 			if (commit->object.parsed)
commit           1799 builtin/blame.c 				mark_parents_uninteresting(commit);
commit           1802 builtin/blame.c 		if (!commit->parents && !show_root)
commit           1803 builtin/blame.c 			commit->object.flags |= UNINTERESTING;
commit           1871 builtin/blame.c 	    (suspect->commit->object.flags & MORE_THAN_ONE_PATH))
commit           1884 builtin/blame.c 	strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));
commit           1923 builtin/blame.c 	get_commit_info(suspect->commit, &ci, 1);
commit           1924 builtin/blame.c 	strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));
commit           1931 builtin/blame.c 		if (suspect->commit->object.flags & UNINTERESTING) {
commit           2001 builtin/blame.c 			struct commit *commit = ent->suspect->commit;
commit           2002 builtin/blame.c 			if (commit->object.flags & MORE_THAN_ONE_PATH)
commit           2004 builtin/blame.c 			for (suspect = commit->util; suspect; suspect = suspect->next) {
commit           2006 builtin/blame.c 					commit->object.flags |= MORE_THAN_ONE_PATH;
commit           2079 builtin/blame.c 	const char *uniq = find_unique_abbrev(suspect->commit->object.sha1,
commit           2111 builtin/blame.c 		if (!(suspect->commit->object.flags & METAINFO_SHOWN)) {
commit           2113 builtin/blame.c 			suspect->commit->object.flags |= METAINFO_SHOWN;
commit           2114 builtin/blame.c 			get_commit_info(suspect->commit, &ci, 1);
commit           2155 builtin/blame.c 				sha1_to_hex(ent->suspect->commit->object.sha1),
commit           2213 builtin/blame.c static void verify_working_tree_path(struct commit *work_tree, const char *path)
commit           2231 builtin/blame.c 	struct commit *parent;
commit           2266 builtin/blame.c static void set_commit_buffer_from_strbuf(struct commit *c, struct strbuf *sb)
commit           2277 builtin/blame.c static struct commit *fake_working_tree_commit(struct diff_options *opt,
commit           2281 builtin/blame.c 	struct commit *commit;
commit           2294 builtin/blame.c 	commit = alloc_commit_node();
commit           2295 builtin/blame.c 	commit->object.parsed = 1;
commit           2296 builtin/blame.c 	commit->date = now;
commit           2297 builtin/blame.c 	parent_tail = &commit->parents;
commit           2304 builtin/blame.c 	verify_working_tree_path(commit, path);
commit           2306 builtin/blame.c 	origin = make_origin(commit, path);
commit           2310 builtin/blame.c 	for (parent = commit->parents; parent; parent = parent->next)
commit           2320 builtin/blame.c 	set_commit_buffer_from_strbuf(commit, &msg);
commit           2401 builtin/blame.c 	return commit;
commit           2426 builtin/blame.c 		sb->final = (struct commit *) obj;
commit           2454 builtin/blame.c 		sb->final = (struct commit *) obj;
commit           2788 builtin/blame.c 	prio_queue_put(&sb.commits, o->commit);
commit            111 builtin/branch.c 			 struct commit *rev, struct commit *head_rev)
commit            119 builtin/branch.c 	struct commit *reference_rev = NULL;
commit            163 builtin/branch.c 			       const unsigned char *sha1, struct commit *head_rev,
commit            166 builtin/branch.c 	struct commit *rev = lookup_commit_reference(sha1);
commit            192 builtin/branch.c 	struct commit *head_rev = NULL;
commit            286 builtin/branch.c 	struct commit *commit;
commit            335 builtin/branch.c 	struct commit *commit;
commit            365 builtin/branch.c 	commit = NULL;
commit            367 builtin/branch.c 		commit = lookup_commit_reference_gently(oid->hash, 1);
commit            368 builtin/branch.c 		if (!commit) {
commit            374 builtin/branch.c 		if (!is_descendant_of(commit, ref_list->with_commit))
commit            379 builtin/branch.c 					   (struct object *)commit, refname);
commit            388 builtin/branch.c 	newitem->commit = commit;
commit            490 builtin/branch.c 	struct commit *commit = item->commit;
commit            492 builtin/branch.c 	if (!parse_commit(commit)) {
commit            493 builtin/branch.c 		pp_commit_easy(CMIT_FMT_ONELINE, commit, &subject);
commit            501 builtin/branch.c 		find_unique_abbrev(item->commit->object.sha1, abbrev),
commit            605 builtin/branch.c 	struct commit *head_commit = lookup_commit_reference_gently(head_sha1, 1);
commit            613 builtin/branch.c 		item.commit = head_commit;
commit            640 builtin/branch.c 		struct commit *filter;
commit            656 builtin/branch.c 			struct commit *commit = item->commit;
commit            657 builtin/branch.c 			int is_merged = !!(commit->object.flags & UNINTERESTING);
commit            663 builtin/branch.c 			clear_commit_marks(item->commit, ALL_REV_FLAGS);
commit             54 builtin/checkout.c static int post_checkout_hook(struct commit *old, struct commit *new,
commit            245 builtin/checkout.c 	struct commit *head;
commit            397 builtin/checkout.c static void describe_detached_head(const char *msg, struct commit *commit)
commit            400 builtin/checkout.c 	if (!parse_commit(commit))
commit            401 builtin/checkout.c 		pp_commit_easy(CMIT_FMT_ONELINE, commit, &sb);
commit            403 builtin/checkout.c 		find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
commit            444 builtin/checkout.c 	struct commit *commit; /* The named commit */
commit            477 builtin/checkout.c 		ret = reset_tree(new->commit->tree, opts, 1, writeout_error);
commit            503 builtin/checkout.c 		topts.gently = opts->merge && old->commit;
commit            511 builtin/checkout.c 		tree = parse_tree_indirect(old->commit ?
commit            512 builtin/checkout.c 					   old->commit->object.sha1 :
commit            515 builtin/checkout.c 		tree = parse_tree_indirect(new->commit->object.sha1);
commit            535 builtin/checkout.c 			if (!old->commit)
commit            563 builtin/checkout.c 			ret = reset_tree(new->commit->tree, opts, 1,
commit            570 builtin/checkout.c 			merge_trees(&o, new->commit->tree, work,
commit            571 builtin/checkout.c 				old->commit->tree, &result);
commit            572 builtin/checkout.c 			ret = reset_tree(new->commit->tree, opts, 0,
commit            589 builtin/checkout.c 		show_local_changes(&new->commit->object, &opts->diff_options);
commit            642 builtin/checkout.c 	if (!old_desc && old->commit)
commit            643 builtin/checkout.c 		old_desc = sha1_to_hex(old->commit->object.sha1);
commit            655 builtin/checkout.c 		update_ref(msg.buf, "HEAD", new->commit->object.sha1, NULL,
commit            660 builtin/checkout.c 			describe_detached_head(_("HEAD is now at"), new->commit);
commit            702 builtin/checkout.c static void describe_one_orphan(struct strbuf *sb, struct commit *commit)
commit            706 builtin/checkout.c 		find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
commit            708 builtin/checkout.c 	if (!parse_commit(commit))
commit            709 builtin/checkout.c 		pp_commit_easy(CMIT_FMT_ONELINE, commit, sb);
commit            714 builtin/checkout.c static void suggest_reattach(struct commit *commit, struct rev_info *revs)
commit            716 builtin/checkout.c 	struct commit *c, *last = NULL;
commit            764 builtin/checkout.c 			find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
commit            772 builtin/checkout.c static void orphaned_commit_warning(struct commit *old, struct commit *new)
commit            811 builtin/checkout.c 	old.commit = lookup_commit_reference_gently(rev, 1);
commit            820 builtin/checkout.c 		new->commit = old.commit;
commit            821 builtin/checkout.c 		if (!new->commit)
commit            823 builtin/checkout.c 		parse_commit_or_die(new->commit);
commit            832 builtin/checkout.c 	if (!opts->quiet && !old.path && old.commit && new->commit != old.commit)
commit            833 builtin/checkout.c 		orphaned_commit_warning(old.commit, new->commit);
commit            837 builtin/checkout.c 	ret = post_checkout_hook(old.commit, new->commit, 1);
commit           1025 builtin/checkout.c 	new->commit = lookup_commit_reference_gently(rev, 1);
commit           1026 builtin/checkout.c 	if (!new->commit) {
commit           1030 builtin/checkout.c 		parse_commit_or_die(new->commit);
commit           1031 builtin/checkout.c 		*source_tree = new->commit->tree;
commit           1100 builtin/checkout.c 	if (new->name && !new->commit)
commit           1115 builtin/checkout.c 	if (!new->commit && opts->new_branch) {
commit            658 builtin/clone.c 		struct commit *c = lookup_commit_reference(our->old_sha1);
commit             17 builtin/commit-tree.c static void new_parent(struct commit *parent, struct commit_list **parents_p)
commit            283 builtin/commit.c static void create_base_index(const struct commit *current_head)
commit            322 builtin/commit.c 				 const struct commit *current_head, int is_status)
commit            521 builtin/commit.c static int is_a_merge(const struct commit *current_head)
commit            658 builtin/commit.c 			     struct commit *current_head,
commit            686 builtin/commit.c 			struct commit *c;
commit            719 builtin/commit.c 		struct commit *commit;
commit            720 builtin/commit.c 		commit = lookup_commit_reference_by_name(fixup_message);
commit            721 builtin/commit.c 		if (!commit)
commit            724 builtin/commit.c 		format_commit_message(commit, "fixup! %s\n\n",
commit           1027 builtin/commit.c 	struct commit *commit;
commit           1045 builtin/commit.c 	commit = get_revision(&revs);
commit           1046 builtin/commit.c 	if (commit) {
commit           1050 builtin/commit.c 		format_commit_message(commit, "%aN <%aE>", &buf, &ctx);
commit           1075 builtin/commit.c 	struct commit *commit;
commit           1077 builtin/commit.c 	commit = lookup_commit_reference_by_name(name);
commit           1078 builtin/commit.c 	if (!commit)
commit           1081 builtin/commit.c 	return logmsg_reencode(commit, NULL, out_enc);
commit           1124 builtin/commit.c 				      struct commit *current_head,
commit           1222 builtin/commit.c 			  const struct commit *current_head, struct wt_status *s)
commit           1419 builtin/commit.c 	struct commit *commit;
commit           1427 builtin/commit.c 	commit = lookup_commit(sha1);
commit           1428 builtin/commit.c 	if (!commit)
commit           1430 builtin/commit.c 	if (parse_commit(commit))
commit           1435 builtin/commit.c 	format_commit_message(commit, "%an <%ae>", &author_ident, &pctx);
commit           1436 builtin/commit.c 	format_commit_message(commit, "%cn <%ce>", &committer_ident, &pctx);
commit           1443 builtin/commit.c 		format_commit_message(commit, "%ad", &date, &pctx);
commit           1481 builtin/commit.c 	if (!log_tree_commit(&rev, commit)) {
commit           1484 builtin/commit.c 		log_tree_commit(&rev, commit);
commit           1632 builtin/commit.c 	struct commit *current_head = NULL;
commit           1691 builtin/commit.c 			struct commit *parent;
commit            185 builtin/describe.c 		struct commit *c = pop_commit(list);
commit            191 builtin/describe.c 				struct commit *i = a->item;
commit            201 builtin/describe.c 			struct commit *p = parents->item;
commit            241 builtin/describe.c 	struct commit *cmit, *gave_up_on = NULL;
commit            276 builtin/describe.c 		struct commit *c;
commit            290 builtin/describe.c 		struct commit *c = pop_commit(&list);
commit            324 builtin/describe.c 			struct commit *p = parents->item;
commit             12 builtin/diff-tree.c 	struct commit *commit = lookup_commit_reference(sha1);
commit             13 builtin/diff-tree.c 	if (!commit)
commit             15 builtin/diff-tree.c 	return log_tree_commit(&log_tree_opt, commit);
commit             19 builtin/diff-tree.c static int stdin_diff_commit(struct commit *commit, char *line, int len)
commit             28 builtin/diff-tree.c 		free_commit_list(commit->parents);
commit             29 builtin/diff-tree.c 		commit->parents = NULL;
commit             30 builtin/diff-tree.c 		pptr = &(commit->parents);
commit             32 builtin/diff-tree.c 			struct commit *parent = lookup_commit(sha1);
commit             39 builtin/diff-tree.c 	return log_tree_commit(&log_tree_opt, commit);
commit             75 builtin/diff-tree.c 		return stdin_diff_commit((struct commit *)obj, line, len);
commit            403 builtin/diff.c 			obj = &((struct commit *)obj)->tree->object;
commit             76 builtin/fast-export.c static int has_unshown_parent(struct commit *commit)
commit             80 builtin/fast-export.c 	for (parent = commit->parents; parent; parent = parent->next)
commit            529 builtin/fast-export.c static void handle_commit(struct commit *commit, struct rev_info *rev)
commit            542 builtin/fast-export.c 	parse_commit_or_die(commit);
commit            543 builtin/fast-export.c 	commit_buffer = get_commit_buffer(commit, NULL);
commit            547 builtin/fast-export.c 		     sha1_to_hex(commit->object.sha1));
commit            553 builtin/fast-export.c 		     sha1_to_hex(commit->object.sha1));
commit            561 builtin/fast-export.c 	if (commit->parents &&
commit            562 builtin/fast-export.c 	    get_object_mark(&commit->parents->item->object) != 0 &&
commit            564 builtin/fast-export.c 		parse_commit_or_die(commit->parents->item);
commit            565 builtin/fast-export.c 		diff_tree_sha1(commit->parents->item->tree->object.sha1,
commit            566 builtin/fast-export.c 			       commit->tree->object.sha1, "", &rev->diffopt);
commit            569 builtin/fast-export.c 		diff_root_tree_sha1(commit->tree->object.sha1,
commit            577 builtin/fast-export.c 	refname = commit->util;
commit            584 builtin/fast-export.c 	mark_next_object(&commit->object);
commit            589 builtin/fast-export.c 	if (!commit->parents)
commit            600 builtin/fast-export.c 	unuse_commit_buffer(commit, commit_buffer);
commit            602 builtin/fast-export.c 	for (i = 0, p = commit->parents; p; p = p->next) {
commit            633 builtin/fast-export.c 	struct commit *commit;
commit            635 builtin/fast-export.c 		commit = (struct commit *)commits->objects[commits->nr - 1].item;
commit            636 builtin/fast-export.c 		if (has_unshown_parent(commit))
commit            638 builtin/fast-export.c 		handle_commit(commit, revs);
commit            652 builtin/fast-export.c 	struct commit *p;
commit            744 builtin/fast-export.c 			p = (struct commit *)tagged;
commit            770 builtin/fast-export.c static struct commit *get_commit(struct rev_cmdline_entry *e, char *full_name)
commit            774 builtin/fast-export.c 		return (struct commit *)e->item;
commit            786 builtin/fast-export.c 		return (struct commit *)tag;
commit            801 builtin/fast-export.c 		struct commit *commit;
commit            819 builtin/fast-export.c 		commit = get_commit(e, full_name);
commit            820 builtin/fast-export.c 		if (!commit) {
commit            827 builtin/fast-export.c 		switch(commit->object.type) {
commit            831 builtin/fast-export.c 			export_blob(commit->object.sha1);
commit            835 builtin/fast-export.c 				typename(commit->object.type));
commit            843 builtin/fast-export.c 		if (commit->util || commit->object.flags & SHOWN)
commit            844 builtin/fast-export.c 			string_list_append(&extra_refs, full_name)->util = commit;
commit            845 builtin/fast-export.c 		if (!commit->util)
commit            846 builtin/fast-export.c 			commit->util = full_name;
commit            852 builtin/fast-export.c 	struct commit *commit;
commit            866 builtin/fast-export.c 			commit = (struct commit *)object;
commit            868 builtin/fast-export.c 			       get_object_mark(&commit->object));
commit            917 builtin/fast-export.c 		struct commit *commit;
commit            941 builtin/fast-export.c 		commit = lookup_commit(sha1);
commit            942 builtin/fast-export.c 		if (!commit)
commit            945 builtin/fast-export.c 		object = &commit->object;
commit            974 builtin/fast-export.c 	struct commit *commit;
commit           1051 builtin/fast-export.c 	while ((commit = get_revision(&revs))) {
commit           1052 builtin/fast-export.c 		if (has_unshown_parent(commit)) {
commit           1053 builtin/fast-export.c 			add_object_array(&commit->object, NULL, &commits);
commit           1056 builtin/fast-export.c 			handle_commit(commit, &revs);
commit            451 builtin/fetch.c 	struct commit *current = NULL, *updated;
commit            589 builtin/fetch.c 	struct commit *commit;
commit            632 builtin/fetch.c 			commit = lookup_commit_reference_gently(rm->old_sha1, 1);
commit            633 builtin/fetch.c 			if (!commit)
commit             63 builtin/fmt-merge-msg.c 		unsigned char commit[20];
commit             74 builtin/fmt-merge-msg.c 					      unsigned char *commit)
commit             80 builtin/fmt-merge-msg.c 		if (commit && hashcmp(table->item[i].commit, commit))
commit             89 builtin/fmt-merge-msg.c 			     unsigned char *commit)
commit             91 builtin/fmt-merge-msg.c 	if (table->nr && find_merge_parent(table, given, commit))
commit             95 builtin/fmt-merge-msg.c 	hashcpy(table->item[table->nr].commit, commit);
commit            259 builtin/fmt-merge-msg.c 			  struct commit *commit)
commit            261 builtin/fmt-merge-msg.c 	const char *buffer = get_commit_buffer(commit, NULL);
commit            263 builtin/fmt-merge-msg.c 	unuse_commit_buffer(commit, buffer);
commit            332 builtin/fmt-merge-msg.c 		     struct commit *head,
commit            338 builtin/fmt-merge-msg.c 	struct commit *commit;
commit            358 builtin/fmt-merge-msg.c 	while ((commit = get_revision(rev)) != NULL) {
commit            361 builtin/fmt-merge-msg.c 		if (commit->parents && commit->parents->next) {
commit            364 builtin/fmt-merge-msg.c 				record_person('c', &committers, commit);
commit            369 builtin/fmt-merge-msg.c 			record_person('c', &committers, commit);
commit            371 builtin/fmt-merge-msg.c 			record_person('a', &authors, commit);
commit            376 builtin/fmt-merge-msg.c 		format_commit_message(commit, "%s", &sb, &ctx);
commit            381 builtin/fmt-merge-msg.c 					   sha1_to_hex(commit->object.sha1));
commit            402 builtin/fmt-merge-msg.c 	clear_commit_marks((struct commit *)branch, flags);
commit            541 builtin/fmt-merge-msg.c 	struct commit *head_commit;
commit            550 builtin/fmt-merge-msg.c 		struct commit *parent;
commit            567 builtin/fmt-merge-msg.c 		parent = (struct commit *)peel_to_type(NULL, 0, obj, OBJ_COMMIT);
commit            580 builtin/fmt-merge-msg.c 			if (!hashcmp(result->item[i].commit,
commit            640 builtin/fmt-merge-msg.c 		struct commit *head;
commit            332 builtin/fsck.c 		struct commit *commit = (struct commit *) obj;
commit            334 builtin/fsck.c 		free_commit_buffer(commit);
commit            336 builtin/fsck.c 		if (!commit->parents && show_root)
commit            337 builtin/fsck.c 			printf("root %s\n", sha1_to_hex(commit->object.sha1));
commit            853 builtin/index-pack.c 				struct commit *commit = (struct commit *) obj;
commit            854 builtin/index-pack.c 				if (detach_commit_buffer(commit, NULL) != data)
commit            217 builtin/log.c  		struct commit *commit = list->item;
commit            218 builtin/log.c  		unsigned int flags = commit->object.flags;
commit            245 builtin/log.c  		struct commit *commit = list->item;
commit            246 builtin/log.c  		switch (simplify_commit(revs, commit)) {
commit            253 builtin/log.c  			log_tree_commit(revs, commit);
commit            326 builtin/log.c  	struct commit *commit;
commit            344 builtin/log.c  	while ((commit = get_revision(rev)) != NULL) {
commit            345 builtin/log.c  		if (!log_tree_commit(rev, commit) && rev->max_count >= 0)
commit            353 builtin/log.c  			free_commit_buffer(commit);
commit            355 builtin/log.c  		free_commit_list(commit->parents);
commit            356 builtin/log.c  		commit->parents = NULL;
commit            788 builtin/log.c  static int reopen_stdout(struct commit *commit, const char *subject,
commit            805 builtin/log.c  	else if (commit)
commit            806 builtin/log.c  		fmt_output_commit(&filename, commit, rev);
commit            823 builtin/log.c  	struct commit *commit, *c1, *c2;
commit            852 builtin/log.c  	while ((commit = get_revision(&check_rev)) != NULL) {
commit            853 builtin/log.c  		add_commit_patch_id(commit, ids);
commit            926 builtin/log.c  			      struct commit *origin,
commit            927 builtin/log.c  			      int nr, struct commit **list,
commit            941 builtin/log.c  	struct commit *head = list[0];
commit           1188 builtin/log.c  	struct commit *commit;
commit           1189 builtin/log.c  	struct commit **list = NULL;
commit           1200 builtin/log.c  	struct commit *origin = NULL;
commit           1459 builtin/log.c  	while ((commit = get_revision(&rev)) != NULL) {
commit           1460 builtin/log.c  		if (commit->object.flags & BOUNDARY) {
commit           1462 builtin/log.c  			origin = (boundary_count == 1) ? commit : NULL;
commit           1466 builtin/log.c  		if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
commit           1471 builtin/log.c  		list[nr - 1] = commit;
commit           1519 builtin/log.c  		commit = list[nr];
commit           1554 builtin/log.c  			gen_message_id(&rev, sha1_to_hex(commit->object.sha1));
commit           1558 builtin/log.c  		    reopen_stdout(rev.numbered_files ? NULL : commit, NULL, &rev, quiet))
commit           1560 builtin/log.c  		shown = log_tree_commit(&rev, commit);
commit           1561 builtin/log.c  		free_commit_buffer(commit);
commit           1596 builtin/log.c  		struct commit *commit = lookup_commit_reference(sha1);
commit           1597 builtin/log.c  		if (commit) {
commit           1598 builtin/log.c  			commit->object.flags |= flags;
commit           1599 builtin/log.c  			add_pending_object(revs, &commit->object, arg);
commit           1611 builtin/log.c  static void print_commit(char sign, struct commit *commit, int verbose,
commit           1616 builtin/log.c  		       find_unique_abbrev(commit->object.sha1, abbrev));
commit           1619 builtin/log.c  		pp_commit_easy(CMIT_FMT_ONELINE, commit, &buf);
commit           1621 builtin/log.c  		       find_unique_abbrev(commit->object.sha1, abbrev),
commit           1631 builtin/log.c  	struct commit *commit;
commit           1691 builtin/log.c  	while ((commit = get_revision(&revs)) != NULL) {
commit           1692 builtin/log.c  		commit_list_insert(commit, &list);
commit           1698 builtin/log.c  		commit = list->item;
commit           1699 builtin/log.c  		if (has_commit_patch_id(commit, &ids))
commit           1701 builtin/log.c  		print_commit(sign, commit, verbose, abbrev);
commit              9 builtin/merge-base.c static int show_merge_base(struct commit **rev, int rev_nr, int show_all)
commit             37 builtin/merge-base.c static struct commit *get_commit_reference(const char *arg)
commit             40 builtin/merge-base.c 	struct commit *r;
commit             97 builtin/merge-base.c 	struct commit *one, *two;
commit            110 builtin/merge-base.c 	struct commit **commit;
commit            118 builtin/merge-base.c 	struct commit *commit;
commit            123 builtin/merge-base.c 	commit = lookup_commit(sha1);
commit            124 builtin/merge-base.c 	if (!commit ||
commit            125 builtin/merge-base.c 	    (commit->object.flags & TMP_MARK) ||
commit            126 builtin/merge-base.c 	    parse_commit(commit))
commit            129 builtin/merge-base.c 	ALLOC_GROW(revs->commit, revs->nr + 1, revs->alloc);
commit            130 builtin/merge-base.c 	revs->commit[revs->nr++] = commit;
commit            131 builtin/merge-base.c 	commit->object.flags |= TMP_MARK;
commit            154 builtin/merge-base.c 	struct commit *derived;
commit            177 builtin/merge-base.c 		revs.commit[i]->object.flags &= ~TMP_MARK;
commit            179 builtin/merge-base.c 	bases = get_merge_bases_many_dirty(derived, revs.nr, revs.commit);
commit            192 builtin/merge-base.c 		if (&bases->item->object == &revs.commit[i]->object)
commit            208 builtin/merge-base.c 	struct commit **rev;
commit             29 builtin/merge-recursive.c 	struct commit *result;
commit            331 builtin/merge.c static void squash_message(struct commit *commit, struct commit_list *remoteheads)
commit            350 builtin/merge.c 	commit->object.flags |= UNINTERESTING;
commit            351 builtin/merge.c 	add_pending_object(&rev, &commit->object, NULL);
commit            365 builtin/merge.c 	while ((commit = get_revision(&rev)) != NULL) {
commit            368 builtin/merge.c 			sha1_to_hex(commit->object.sha1));
commit            369 builtin/merge.c 		pretty_print_commit(&ctx, commit, &out);
commit            378 builtin/merge.c static void finish(struct commit *head_commit,
commit            433 builtin/merge.c 	struct commit *remote_head;
commit            637 builtin/merge.c 			      struct commit *head, const char *head_arg)
commit            650 builtin/merge.c 		struct commit *result;
commit            817 builtin/merge.c static int merge_trivial(struct commit *head, struct commit_list *remoteheads)
commit            835 builtin/merge.c static int finish_automerge(struct commit *head,
commit            883 builtin/merge.c static struct commit *is_old_style_invocation(int argc, const char **argv,
commit            886 builtin/merge.c 	struct commit *second_token = NULL;
commit            962 builtin/merge.c 		struct commit *c = j->item;
commit           1018 builtin/merge.c static struct commit_list *reduce_parents(struct commit *head_commit,
commit           1039 builtin/merge.c 		struct commit *commit = parents->item;
commit           1041 builtin/merge.c 		if (commit == head_commit)
commit           1044 builtin/merge.c 			remotes = &commit_list_insert(commit, remotes)->next;
commit           1086 builtin/merge.c 		struct commit *commit;
commit           1096 builtin/merge.c 			commit = NULL; /* bad */
commit           1102 builtin/merge.c 			commit = get_merge_parent(merge_names->buf + pos);
commit           1105 builtin/merge.c 		if (!commit) {
commit           1111 builtin/merge.c 		remotes = &commit_list_insert(commit, remotes)->next;
commit           1118 builtin/merge.c static struct commit_list *collect_parents(struct commit *head_commit,
commit           1139 builtin/merge.c 			struct commit *commit = get_merge_parent(argv[i]);
commit           1140 builtin/merge.c 			if (!commit)
commit           1143 builtin/merge.c 			remotes = &commit_list_insert(commit, remotes)->next;
commit           1166 builtin/merge.c 	struct commit *head_commit;
commit           1261 builtin/merge.c 		struct commit *remote_head;
commit           1321 builtin/merge.c 			struct commit *commit = p->item;
commit           1326 builtin/merge.c 			check_commit_signature(commit, &signature_check);
commit           1328 builtin/merge.c 			strcpy(hex, find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
commit           1356 builtin/merge.c 		struct commit *commit = p->item;
commit           1358 builtin/merge.c 			    sha1_to_hex(commit->object.sha1));
commit           1359 builtin/merge.c 		setenv(buf.buf, merge_remote_util(commit)->name, 1);
commit           1362 builtin/merge.c 		    merge_remote_util(commit) &&
commit           1363 builtin/merge.c 		    merge_remote_util(commit)->obj &&
commit           1364 builtin/merge.c 		    merge_remote_util(commit)->obj->type == OBJ_TAG)
commit           1417 builtin/merge.c 		struct commit *commit;
commit           1431 builtin/merge.c 		commit = remoteheads->item;
commit           1432 builtin/merge.c 		if (!commit) {
commit           1438 builtin/merge.c 					  commit->object.sha1,
commit           1444 builtin/merge.c 		finish(head_commit, remoteheads, commit->object.sha1, msg.buf);
commit             22 builtin/name-rev.c static void name_rev(struct commit *commit,
commit             26 builtin/name-rev.c 	struct rev_name *name = (struct rev_name *)commit->util;
commit             30 builtin/name-rev.c 	parse_commit(commit);
commit             32 builtin/name-rev.c 	if (commit->date < cutoff)
commit             44 builtin/name-rev.c 		commit->util = name;
commit             54 builtin/name-rev.c 	for (parents = commit->parents;
commit            173 builtin/name-rev.c 		struct commit *commit = (struct commit *)o;
commit            176 builtin/name-rev.c 		name_rev(commit, xstrdup(path), 0, 0, deref);
commit            212 builtin/name-rev.c 	struct commit *c;
commit            216 builtin/name-rev.c 	c = (struct commit *) o;
commit            340 builtin/name-rev.c 		struct commit *commit;
commit            348 builtin/name-rev.c 		commit = NULL;
commit            353 builtin/name-rev.c 				commit = (struct commit *)peeled;
commit            362 builtin/name-rev.c 		if (commit) {
commit            363 builtin/name-rev.c 			if (cutoff > commit->date)
commit            364 builtin/name-rev.c 				cutoff = commit->date;
commit            368 builtin/name-rev.c 			if (!commit) {
commit            373 builtin/name-rev.c 			object = (struct object *)commit;
commit            692 builtin/notes.c 	struct commit *partial;
commit             87 builtin/pack-objects.c static struct commit **indexed_commits;
commit             91 builtin/pack-objects.c static void index_commit_for_bitmap(struct commit *commit)
commit             98 builtin/pack-objects.c 	indexed_commits[indexed_commits_nr++] = commit;
commit           2278 builtin/pack-objects.c static void show_commit(struct commit *commit, void *data)
commit           2280 builtin/pack-objects.c 	add_object_entry(commit->object.sha1, OBJ_COMMIT, NULL, 0);
commit           2281 builtin/pack-objects.c 	commit->object.flags |= OBJECT_ADDED;
commit           2284 builtin/pack-objects.c 		index_commit_for_bitmap(commit);
commit           2304 builtin/pack-objects.c static void show_edge(struct commit *commit)
commit           2306 builtin/pack-objects.c 	add_preferred_base(commit->object.sha1);
commit           2490 builtin/pack-objects.c static void record_recent_commit(struct commit *commit, void *data)
commit           2492 builtin/pack-objects.c 	sha1_array_append(&recent_objects, commit->object.sha1);
commit            960 builtin/receive-pack.c 		struct commit *old_commit, *new_commit;
commit            971 builtin/receive-pack.c 		old_commit = (struct commit *)old_object;
commit            972 builtin/receive-pack.c 		new_commit = (struct commit *)new_object;
commit             39 builtin/reflog.c 	struct commit *tip_commit;
commit            100 builtin/reflog.c static int commit_is_complete(struct commit *commit)
commit            108 builtin/reflog.c 	if (commit->object.flags & SEEN)
commit            110 builtin/reflog.c 	if (commit->object.flags & INCOMPLETE)
commit            121 builtin/reflog.c 	add_object_array(&commit->object, NULL, &study);
commit            122 builtin/reflog.c 	add_object_array(&commit->object, NULL, &found);
commit            123 builtin/reflog.c 	commit->object.flags |= STUDYING;
commit            125 builtin/reflog.c 		struct commit *c;
commit            128 builtin/reflog.c 		c = (struct commit *)study.objects[--study.nr].item;
commit            139 builtin/reflog.c 			struct commit *p = parent->item;
commit            153 builtin/reflog.c 			struct commit *c =
commit            154 builtin/reflog.c 				(struct commit *)found.objects[i].item;
commit            170 builtin/reflog.c 		commit->object.flags |= INCOMPLETE;
commit            189 builtin/reflog.c static int keep_entry(struct commit **it, unsigned char *sha1)
commit            191 builtin/reflog.c 	struct commit *commit;
commit            195 builtin/reflog.c 	commit = lookup_commit_reference_gently(sha1, 1);
commit            196 builtin/reflog.c 	if (!commit)
commit            207 builtin/reflog.c 	if (!commit_is_complete(commit))
commit            209 builtin/reflog.c 	*it = commit;
commit            221 builtin/reflog.c 	struct commit *commit;
commit            234 builtin/reflog.c 		commit = entry->item;
commit            236 builtin/reflog.c 		if (commit->object.flags & REACHABLE)
commit            238 builtin/reflog.c 		if (parse_commit(commit))
commit            240 builtin/reflog.c 		commit->object.flags |= REACHABLE;
commit            241 builtin/reflog.c 		if (commit->date < expire_limit) {
commit            242 builtin/reflog.c 			commit_list_insert(commit, &leftover);
commit            245 builtin/reflog.c 		commit->object.flags |= REACHABLE;
commit            246 builtin/reflog.c 		parent = commit->parents;
commit            248 builtin/reflog.c 			commit = parent->item;
commit            250 builtin/reflog.c 			if (commit->object.flags & REACHABLE)
commit            252 builtin/reflog.c 			commit_list_insert(commit, &pending);
commit            258 builtin/reflog.c static int unreachable(struct expire_reflog_policy_cb *cb, struct commit *commit, unsigned char *sha1)
commit            264 builtin/reflog.c 	if (!commit) {
commit            268 builtin/reflog.c 		commit = lookup_commit_reference_gently(sha1, 1);
commit            271 builtin/reflog.c 		if (!commit)
commit            276 builtin/reflog.c 	if (commit->object.flags & REACHABLE)
commit            284 builtin/reflog.c 	return !(commit->object.flags & REACHABLE);
commit            295 builtin/reflog.c 	struct commit *old, *new;
commit            322 builtin/reflog.c 	struct commit *tip_commit;
commit            342 builtin/replace.c static void check_one_mergetag(struct commit *commit,
commit            372 builtin/replace.c static void check_mergetags(struct commit *commit, int argc, const char **argv)
commit            378 builtin/replace.c 	for_each_mergetag(check_one_mergetag, commit, &mergetag_data);
commit            385 builtin/replace.c 	struct commit *commit;
commit            392 builtin/replace.c 	commit = lookup_commit_or_die(old, old_ref);
commit            394 builtin/replace.c 	buffer = get_commit_buffer(commit, &size);
commit            396 builtin/replace.c 	unuse_commit_buffer(commit, buffer);
commit            405 builtin/replace.c 	check_mergetags(commit, argc, argv);
commit             94 builtin/reset.c static void print_new_head_line(struct commit *commit)
commit             99 builtin/reset.c 	hex = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV);
commit            101 builtin/reset.c 	msg = logmsg_reencode(commit, NULL, get_log_output_encoding());
commit            113 builtin/reset.c 	unuse_commit_buffer(commit, msg);
commit            303 builtin/reset.c 		struct commit *commit;
commit            306 builtin/reset.c 		commit = lookup_commit_reference(sha1);
commit            307 builtin/reset.c 		if (!commit)
commit            309 builtin/reset.c 		hashcpy(sha1, commit->object.sha1);
commit             52 builtin/rev-list.c static void finish_commit(struct commit *commit, void *data);
commit             53 builtin/rev-list.c static void show_commit(struct commit *commit, void *data)
commit             59 builtin/rev-list.c 		finish_commit(commit, data);
commit             66 builtin/rev-list.c 		if (commit->object.flags & PATCHSAME)
commit             68 builtin/rev-list.c 		else if (commit->object.flags & SYMMETRIC_LEFT)
commit             72 builtin/rev-list.c 		finish_commit(commit, data);
commit             77 builtin/rev-list.c 		printf("%lu ", commit->date);
commit             82 builtin/rev-list.c 		fputs(get_revision_mark(revs, commit), stdout);
commit             84 builtin/rev-list.c 		fputs(find_unique_abbrev(commit->object.sha1, revs->abbrev),
commit             87 builtin/rev-list.c 		fputs(sha1_to_hex(commit->object.sha1), stdout);
commit             89 builtin/rev-list.c 		struct commit_list *parents = commit->parents;
commit             98 builtin/rev-list.c 		children = lookup_decoration(&revs->children, &commit->object);
commit            104 builtin/rev-list.c 	show_decorations(revs, commit);
commit            110 builtin/rev-list.c 	if (revs->verbose_header && get_cached_commit_buffer(commit, NULL)) {
commit            118 builtin/rev-list.c 		pretty_print_commit(&ctx, commit, &buf);
commit            168 builtin/rev-list.c 	finish_commit(commit, data);
commit            171 builtin/rev-list.c static void finish_commit(struct commit *commit, void *data)
commit            173 builtin/rev-list.c 	if (commit->parents) {
commit            174 builtin/rev-list.c 		free_commit_list(commit->parents);
commit            175 builtin/rev-list.c 		commit->parents = NULL;
commit            177 builtin/rev-list.c 	free_commit_buffer(commit);
commit            202 builtin/rev-list.c static void show_edge(struct commit *commit)
commit            204 builtin/rev-list.c 	printf("-%s\n", sha1_to_hex(commit->object.sha1));
commit            279 builtin/rev-parse.c 			struct commit *a, *b;
commit            302 builtin/rev-parse.c 	struct commit *commit;
commit            322 builtin/rev-parse.c 	commit = lookup_commit_reference(sha1);
commit            323 builtin/rev-parse.c 	for (parents = commit->parents; parents; parents = parents->next)
commit            110 builtin/shortlog.c void shortlog_add_commit(struct shortlog *log, struct commit *commit)
commit            116 builtin/shortlog.c 	pp_commit_easy(CMIT_FMT_RAW, commit, &buf);
commit            132 builtin/shortlog.c 		    sha1_to_hex(commit->object.sha1));
commit            143 builtin/shortlog.c 		pretty_print_commit(&ctx, commit, &ufbuf);
commit            155 builtin/shortlog.c 	struct commit *commit;
commit            159 builtin/shortlog.c 	while ((commit = get_revision(rev)) != NULL)
commit            160 builtin/shortlog.c 		shortlog_add_commit(log, commit);
commit             44 builtin/show-branch.c static struct commit *interesting(struct commit_list *list)
commit             47 builtin/show-branch.c 		struct commit *commit = list->item;
commit             49 builtin/show-branch.c 		if (commit->object.flags & UNINTERESTING)
commit             51 builtin/show-branch.c 		return commit;
commit             56 builtin/show-branch.c static struct commit *pop_one_commit(struct commit_list **list_p)
commit             58 builtin/show-branch.c 	struct commit *commit;
commit             61 builtin/show-branch.c 	commit = list->item;
commit             64 builtin/show-branch.c 	return commit;
commit             75 builtin/show-branch.c static void name_commit(struct commit *commit, const char *head_name, int nth)
commit             78 builtin/show-branch.c 	if (!commit->util)
commit             79 builtin/show-branch.c 		commit->util = xmalloc(sizeof(struct commit_name));
commit             80 builtin/show-branch.c 	name = commit->util;
commit             90 builtin/show-branch.c static void name_parent(struct commit *commit, struct commit *parent)
commit             92 builtin/show-branch.c 	struct commit_name *commit_name = commit->util;
commit            102 builtin/show-branch.c static int name_first_parent_chain(struct commit *c)
commit            106 builtin/show-branch.c 		struct commit *p;
commit            124 builtin/show-branch.c 			 struct commit **rev,
commit            129 builtin/show-branch.c 	struct commit *c;
commit            167 builtin/show-branch.c 				struct commit *p = parents->item;
commit            197 builtin/show-branch.c static int mark_seen(struct commit *commit, struct commit_list **seen_p)
commit            199 builtin/show-branch.c 	if (!commit->object.flags) {
commit            200 builtin/show-branch.c 		commit_list_insert(commit, seen_p);
commit            216 builtin/show-branch.c 		struct commit *commit = pop_one_commit(list_p);
commit            217 builtin/show-branch.c 		int flags = commit->object.flags & all_mask;
commit            222 builtin/show-branch.c 		mark_seen(commit, seen_p);
commit            225 builtin/show-branch.c 		parents = commit->parents;
commit            228 builtin/show-branch.c 			struct commit *p = parents->item;
commit            252 builtin/show-branch.c 			struct commit *c = s->item;
commit            267 builtin/show-branch.c 				struct commit *p = parents->item;
commit            280 builtin/show-branch.c static void show_one_commit(struct commit *commit, int no_name)
commit            284 builtin/show-branch.c 	struct commit_name *name = commit->util;
commit            286 builtin/show-branch.c 	if (commit->object.parsed) {
commit            287 builtin/show-branch.c 		pp_commit_easy(CMIT_FMT_ONELINE, commit, &pretty);
commit            306 builtin/show-branch.c 			       find_unique_abbrev(commit->object.sha1,
commit            375 builtin/show-branch.c 	struct commit *commit = lookup_commit_reference_gently(oid->hash, 1);
commit            378 builtin/show-branch.c 	if (!commit)
commit            507 builtin/show-branch.c 		struct commit *commit = pop_one_commit(&seen);
commit            508 builtin/show-branch.c 		int flags = commit->object.flags & all_mask;
commit            511 builtin/show-branch.c 			puts(sha1_to_hex(commit->object.sha1));
commit            513 builtin/show-branch.c 			commit->object.flags |= UNINTERESTING;
commit            519 builtin/show-branch.c static int show_independent(struct commit **rev,
commit            527 builtin/show-branch.c 		struct commit *commit = rev[i];
commit            530 builtin/show-branch.c 		if (commit->object.flags == flag)
commit            531 builtin/show-branch.c 			puts(sha1_to_hex(commit->object.sha1));
commit            532 builtin/show-branch.c 		commit->object.flags |= UNINTERESTING;
commit            591 builtin/show-branch.c static int omit_in_dense(struct commit *commit, struct commit **rev, int n)
commit            600 builtin/show-branch.c 		if (rev[i] == commit)
commit            602 builtin/show-branch.c 	flag = commit->object.flags;
commit            635 builtin/show-branch.c 	struct commit *rev[MAX_REVS], *commit;
commit            849 builtin/show-branch.c 		commit = lookup_commit_reference(revkey.hash);
commit            850 builtin/show-branch.c 		if (!commit)
commit            853 builtin/show-branch.c 		parse_commit(commit);
commit            854 builtin/show-branch.c 		mark_seen(commit, &seen);
commit            860 builtin/show-branch.c 		commit->object.flags |= flag;
commit            861 builtin/show-branch.c 		if (commit->object.flags == flag)
commit            862 builtin/show-branch.c 			commit_list_insert_by_date(commit, &list);
commit            863 builtin/show-branch.c 		rev[num_rev] = commit;
commit            930 builtin/show-branch.c 		struct commit *commit = pop_one_commit(&seen);
commit            931 builtin/show-branch.c 		int this_flag = commit->object.flags;
commit            937 builtin/show-branch.c 			int is_merge = !!(commit->parents &&
commit            938 builtin/show-branch.c 					  commit->parents->next);
commit            944 builtin/show-branch.c 			    omit_in_dense(commit, rev, num_rev))
commit            962 builtin/show-branch.c 		show_one_commit(commit, no_name);
commit             77 builtin/tag.c  static int in_commit_list(const struct commit_list *want, struct commit *c)
commit             95 builtin/tag.c  static enum contains_result contains_test(struct commit *candidate,
commit            126 builtin/tag.c  		struct commit *commit;
commit            131 builtin/tag.c  static void push_to_stack(struct commit *candidate, struct stack *stack)
commit            135 builtin/tag.c  	stack->stack[index].commit = candidate;
commit            139 builtin/tag.c  static enum contains_result contains(struct commit *candidate,
commit            151 builtin/tag.c  		struct commit *commit = entry->commit;
commit            155 builtin/tag.c  			commit->object.flags |= UNINTERESTING;
commit            164 builtin/tag.c  			commit->object.flags |= TMP_MARK;
commit            225 builtin/tag.c  			struct commit *commit;
commit            227 builtin/tag.c  			commit = lookup_commit_reference_gently(oid->hash, 1);
commit            228 builtin/tag.c  			if (!commit)
commit            230 builtin/tag.c  			if (!contains(commit, filter->with_commit))
commit            195 builtin/worktree.c 	struct commit *commit = NULL;
commit            208 builtin/worktree.c 		commit = lookup_commit_reference_by_name(refname);
commit            209 builtin/worktree.c 		if (!commit)
commit            275 builtin/worktree.c 	if (commit)
commit            277 builtin/worktree.c 				 sha1_to_hex(commit->object.sha1), NULL);
commit            137 bundle.c       	struct commit *commit;
commit            166 bundle.c       	while (i && (commit = get_revision(&revs)))
commit            167 bundle.c       		if (commit->object.flags & PREREQ_MARK)
commit            369 bundle.c       			struct commit *one = lookup_commit_reference(sha1);
commit           1536 combine-diff.c void diff_tree_combined_merge(const struct commit *commit, int dense,
commit           1539 combine-diff.c 	struct commit_list *parent = get_saved_parents(rev, commit);
commit           1546 combine-diff.c 	diff_tree_combined(commit->object.sha1, &parents, dense, rev);
commit             90 commit-slab.h  						  const struct commit *c, \
commit            118 commit-slab.h  					     const struct commit *c)	\
commit            124 commit-slab.h  					     const struct commit *c)	\
commit             21 commit.c       struct commit *lookup_commit_reference_gently(const unsigned char *sha1,
commit             31 commit.c       struct commit *lookup_commit_reference(const unsigned char *sha1)
commit             36 commit.c       struct commit *lookup_commit_or_die(const unsigned char *sha1, const char *ref_name)
commit             38 commit.c       	struct commit *c = lookup_commit_reference(sha1);
commit             48 commit.c       struct commit *lookup_commit(const unsigned char *sha1)
commit             56 commit.c       struct commit *lookup_commit_reference_by_name(const char *name)
commit             59 commit.c       	struct commit *commit;
commit             63 commit.c       	commit = lookup_commit_reference(oid.hash);
commit             64 commit.c       	if (parse_commit(commit))
commit             66 commit.c       	return commit;
commit            239 commit.c       void set_commit_buffer(struct commit *commit, void *buffer, unsigned long size)
commit            241 commit.c       	struct commit_buffer *v = buffer_slab_at(&buffer_slab, commit);
commit            246 commit.c       const void *get_cached_commit_buffer(const struct commit *commit, unsigned long *sizep)
commit            248 commit.c       	struct commit_buffer *v = buffer_slab_peek(&buffer_slab, commit);
commit            259 commit.c       const void *get_commit_buffer(const struct commit *commit, unsigned long *sizep)
commit            261 commit.c       	const void *ret = get_cached_commit_buffer(commit, sizep);
commit            265 commit.c       		ret = read_sha1_file(commit->object.sha1, &type, &size);
commit            268 commit.c       			    sha1_to_hex(commit->object.sha1));
commit            271 commit.c       			    sha1_to_hex(commit->object.sha1), typename(type));
commit            278 commit.c       void unuse_commit_buffer(const struct commit *commit, const void *buffer)
commit            280 commit.c       	struct commit_buffer *v = buffer_slab_peek(&buffer_slab, commit);
commit            285 commit.c       void free_commit_buffer(struct commit *commit)
commit            287 commit.c       	struct commit_buffer *v = buffer_slab_peek(&buffer_slab, commit);
commit            295 commit.c       const void *detach_commit_buffer(struct commit *commit, unsigned long *sizep)
commit            297 commit.c       	struct commit_buffer *v = buffer_slab_peek(&buffer_slab, commit);
commit            314 commit.c       int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size)
commit            340 commit.c       		struct commit *new_parent;
commit            359 commit.c       		struct commit *new_parent;
commit            372 commit.c       int parse_commit_gently(struct commit *item, int quiet_on_missing)
commit            402 commit.c       void parse_commit_or_die(struct commit *item)
commit            428 commit.c       struct commit_list *commit_list_insert(struct commit *item, struct commit_list **list_p)
commit            465 commit.c       struct commit_list * commit_list_insert_by_date(struct commit *item, struct commit_list **list)
commit            505 commit.c       struct commit *pop_most_recent_commit(struct commit_list **list,
commit            508 commit.c       	struct commit *ret = (*list)->item;
commit            516 commit.c       		struct commit *commit = parents->item;
commit            517 commit.c       		if (!parse_commit(commit) && !(commit->object.flags & mark)) {
commit            518 commit.c       			commit->object.flags |= mark;
commit            519 commit.c       			commit_list_insert_by_date(commit, list);
commit            527 commit.c       				 struct commit *commit, unsigned int mark)
commit            529 commit.c       	while (commit) {
commit            532 commit.c       		if (!(mark & commit->object.flags))
commit            535 commit.c       		commit->object.flags &= ~mark;
commit            537 commit.c       		parents = commit->parents;
commit            544 commit.c       		commit = commit->parents->item;
commit            548 commit.c       void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark)
commit            553 commit.c       		commit_list_insert(*commit, &list);
commit            554 commit.c       		commit++;
commit            560 commit.c       void clear_commit_marks(struct commit *commit, unsigned int mark)
commit            562 commit.c       	clear_commit_marks_many(1, &commit, mark);
commit            568 commit.c       	struct commit *commit;
commit            573 commit.c       		commit = lookup_commit_reference_gently(object->sha1, 1);
commit            574 commit.c       		if (commit)
commit            575 commit.c       			clear_commit_marks(commit, mark);
commit            579 commit.c       struct commit *pop_commit(struct commit_list **stack)
commit            582 commit.c       	struct commit *item = top ? top->item : NULL;
commit            602 commit.c       			       struct commit *commit)
commit            604 commit.c       	const char *buffer = get_commit_buffer(commit, NULL);
commit            621 commit.c       	*(author_date_slab_at(author_date, commit)) = date;
commit            624 commit.c       	unuse_commit_buffer(commit, buffer);
commit            630 commit.c       	const struct commit *a = a_, *b = b_;
commit            645 commit.c       	const struct commit *a = a_, *b = b_;
commit            663 commit.c       	struct commit *commit;
commit            689 commit.c       		struct commit *commit = next->item;
commit            690 commit.c       		*(indegree_slab_at(&indegree, commit)) = 1;
commit            693 commit.c       			record_author_date(&author_date, commit);
commit            700 commit.c       			struct commit *parent = parents->item;
commit            717 commit.c       		struct commit *commit = next->item;
commit            719 commit.c       		if (*(indegree_slab_at(&indegree, commit)) == 1)
commit            720 commit.c       			prio_queue_put(&queue, commit);
commit            735 commit.c       	while ((commit = prio_queue_get(&queue)) != NULL) {
commit            738 commit.c       		for (parents = commit->parents; parents ; parents = parents->next) {
commit            739 commit.c       			struct commit *parent = parents->item;
commit            757 commit.c       		*(indegree_slab_at(&indegree, commit)) = 0;
commit            759 commit.c       		pptr = &commit_list_insert(commit, pptr)->next;
commit            782 commit.c       		struct commit *commit = queue->array[i].data;
commit            783 commit.c       		if (!(commit->object.flags & STALE))
commit            790 commit.c       static struct commit_list *paint_down_to_common(struct commit *one, int n, struct commit **twos)
commit            809 commit.c       		struct commit *commit = prio_queue_get(&queue);
commit            813 commit.c       		flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
commit            815 commit.c       			if (!(commit->object.flags & RESULT)) {
commit            816 commit.c       				commit->object.flags |= RESULT;
commit            817 commit.c       				commit_list_insert_by_date(commit, &result);
commit            822 commit.c       		parents = commit->parents;
commit            824 commit.c       			struct commit *p = parents->item;
commit            839 commit.c       static struct commit_list *merge_bases_many(struct commit *one, int n, struct commit **twos)
commit            900 commit.c       static int remove_redundant(struct commit **array, int cnt)
commit            908 commit.c       	struct commit **work;
commit            956 commit.c       static struct commit_list *get_merge_bases_many_0(struct commit *one,
commit            958 commit.c       						  struct commit **twos,
commit            962 commit.c       	struct commit **rslt;
commit            997 commit.c       struct commit_list *get_merge_bases_many(struct commit *one,
commit            999 commit.c       					 struct commit **twos)
commit           1004 commit.c       struct commit_list *get_merge_bases_many_dirty(struct commit *one,
commit           1006 commit.c       					       struct commit **twos)
commit           1011 commit.c       struct commit_list *get_merge_bases(struct commit *one, struct commit *two)
commit           1019 commit.c       int is_descendant_of(struct commit *commit, struct commit_list *with_commit)
commit           1024 commit.c       		struct commit *other;
commit           1028 commit.c       		if (in_merge_bases(other, commit))
commit           1037 commit.c       int in_merge_bases_many(struct commit *commit, int nr_reference, struct commit **reference)
commit           1042 commit.c       	if (parse_commit(commit))
commit           1048 commit.c       	bases = paint_down_to_common(commit, nr_reference, reference);
commit           1049 commit.c       	if (commit->object.flags & PARENT2)
commit           1051 commit.c       	clear_commit_marks(commit, all_flags);
commit           1060 commit.c       int in_merge_bases(struct commit *commit, struct commit *reference)
commit           1062 commit.c       	return in_merge_bases_many(commit, 1, &reference);
commit           1069 commit.c       	struct commit **array;
commit           1133 commit.c       int parse_signed_commit(const struct commit *commit,
commit           1138 commit.c       	const char *buffer = get_commit_buffer(commit, &size);
commit           1169 commit.c       	unuse_commit_buffer(commit, buffer);
commit           1207 commit.c       static void handle_signed_tag(struct commit *parent, struct commit_extra_header ***tail)
commit           1247 commit.c       int check_commit_signature(const struct commit *commit, struct signature_check *sigc)
commit           1255 commit.c       	if (parse_signed_commit(commit, &payload, &signature) <= 0)
commit           1273 commit.c       		struct commit *parent = parents->item;
commit           1289 commit.c       struct commit_extra_header *read_commit_extra_headers(struct commit *commit,
commit           1294 commit.c       	const char *buffer = get_commit_buffer(commit, &size);
commit           1296 commit.c       	unuse_commit_buffer(commit, buffer);
commit           1300 commit.c       void for_each_mergetag(each_mergetag_fn fn, struct commit *commit, void *data)
commit           1304 commit.c       	to_free = read_commit_extra_headers(commit, NULL);
commit           1308 commit.c       		fn(commit, extra, data);
commit           1550 commit.c       		struct commit *parent = parents->item;
commit           1587 commit.c       struct commit *get_merge_parent(const char *name)
commit           1590 commit.c       	struct commit *commit;
commit           1595 commit.c       	commit = (struct commit *)peel_to_type(name, 0, obj, OBJ_COMMIT);
commit           1596 commit.c       	if (commit && !commit->util) {
commit           1601 commit.c       		commit->util = desc;
commit           1603 commit.c       	return commit;
commit           1623 commit.c       struct commit_list **commit_list_append(struct commit *commit,
commit           1627 commit.c       	new->item = commit;
commit             12 commit.h       	struct commit *item;
commit             48 commit.h       struct commit *lookup_commit(const unsigned char *sha1);
commit             49 commit.h       struct commit *lookup_commit_reference(const unsigned char *sha1);
commit             50 commit.h       struct commit *lookup_commit_reference_gently(const unsigned char *sha1,
commit             52 commit.h       struct commit *lookup_commit_reference_by_name(const char *name);
commit             59 commit.h       struct commit *lookup_commit_or_die(const unsigned char *sha1, const char *ref_name);
commit             61 commit.h       int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size);
commit             62 commit.h       int parse_commit_gently(struct commit *item, int quiet_on_missing);
commit             63 commit.h       static inline int parse_commit(struct commit *item)
commit             67 commit.h       void parse_commit_or_die(struct commit *item);
commit             73 commit.h       void set_commit_buffer(struct commit *, void *buffer, unsigned long size);
commit             79 commit.h       const void *get_cached_commit_buffer(const struct commit *, unsigned long *size);
commit             86 commit.h       const void *get_commit_buffer(const struct commit *, unsigned long *size);
commit             94 commit.h       void unuse_commit_buffer(const struct commit *, const void *buffer);
commit             99 commit.h       void free_commit_buffer(struct commit *);
commit            105 commit.h       const void *detach_commit_buffer(struct commit *, unsigned long *sizep);
commit            110 commit.h       struct commit_list *commit_list_insert(struct commit *item,
commit            112 commit.h       struct commit_list **commit_list_append(struct commit *commit,
commit            115 commit.h       struct commit_list *commit_list_insert_by_date(struct commit *item,
commit            171 commit.h       extern const char *logmsg_reencode(const struct commit *commit,
commit            179 commit.h       extern void format_commit_message(const struct commit *commit,
commit            183 commit.h       				const struct commit *commit,
commit            185 commit.h       extern void pp_commit_easy(enum cmit_fmt fmt, const struct commit *commit,
commit            204 commit.h       struct commit *pop_most_recent_commit(struct commit_list **list,
commit            207 commit.h       struct commit *pop_commit(struct commit_list **stack);
commit            209 commit.h       void clear_commit_marks(struct commit *commit, unsigned int mark);
commit            210 commit.h       void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
commit            243 commit.h       extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2);
commit            244 commit.h       extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos);
commit            248 commit.h       extern struct commit_list *get_merge_bases_many_dirty(struct commit *one, int n, struct commit **twos);
commit            281 commit.h       	struct commit **commits;
commit            295 commit.h       int is_descendant_of(struct commit *, struct commit_list *);
commit            296 commit.h       int in_merge_bases(struct commit *, struct commit *);
commit            297 commit.h       int in_merge_bases_many(struct commit *, int, struct commit **);
commit            303 commit.h       static inline int single_parent(struct commit *commit)
commit            305 commit.h       	return commit->parents && !commit->parents->next;
commit            331 commit.h       extern struct commit_extra_header *read_commit_extra_headers(struct commit *, const char **);
commit            349 commit.h       typedef void (*each_mergetag_fn)(struct commit *commit, struct commit_extra_header *extra,
commit            352 commit.h       extern void for_each_mergetag(each_mergetag_fn fn, struct commit *commit, void *data);
commit            358 commit.h       #define merge_remote_util(commit) ((struct merge_remote_desc *)((commit)->util))
commit            365 commit.h       struct commit *get_merge_parent(const char *name);
commit            367 commit.h       extern int parse_signed_commit(const struct commit *commit,
commit            382 commit.h       extern int check_commit_signature(const struct commit *commit, struct signature_check *sigc);
commit             30 connected.c    	char commit[41];
commit             73 connected.c    	commit[40] = '\n';
commit             86 connected.c    		memcpy(commit, sha1_to_hex(sha1), 40);
commit             87 connected.c    		if (write_in_full(rev_list.in, commit, 41) < 0) {
commit             45 contrib/examples/builtin-fetch--tool.c 	struct commit *current, *updated;
commit            127 contrib/examples/builtin-fetch--tool.c 	struct commit *commit;
commit            135 contrib/examples/builtin-fetch--tool.c 	commit = lookup_commit_reference_gently(sha1, 1);
commit            136 contrib/examples/builtin-fetch--tool.c 	if (!commit)
commit            175 contrib/examples/builtin-fetch--tool.c 		sha1_to_hex(commit ? commit->object.sha1 : sha1),
commit             18 diff.h         struct commit;
commit            233 diff.h         extern void diff_tree_combined_merge(const struct commit *commit, int dense, struct rev_info *rev);
commit           1707 fast-import.c  		struct commit *old_cmit, *new_cmit;
commit             53 fetch-pack.c   static void rev_list_push(struct commit *commit, int mark)
commit             55 fetch-pack.c   	if (!(commit->object.flags & mark)) {
commit             56 fetch-pack.c   		commit->object.flags |= mark;
commit             58 fetch-pack.c   		if (parse_commit(commit))
commit             61 fetch-pack.c   		prio_queue_put(&rev_list, commit);
commit             63 fetch-pack.c   		if (!(commit->object.flags & COMMON))
commit             73 fetch-pack.c   		rev_list_push((struct commit *)o, SEEN);
commit             90 fetch-pack.c   		clear_commit_marks((struct commit *)o,
commit            101 fetch-pack.c   static void mark_common(struct commit *commit,
commit            104 fetch-pack.c   	if (commit != NULL && !(commit->object.flags & COMMON)) {
commit            105 fetch-pack.c   		struct object *o = (struct object *)commit;
commit            111 fetch-pack.c   			rev_list_push(commit, SEEN);
commit            118 fetch-pack.c   				if (parse_commit(commit))
commit            121 fetch-pack.c   			for (parents = commit->parents;
commit            135 fetch-pack.c   	struct commit *commit = NULL;
commit            137 fetch-pack.c   	while (commit == NULL) {
commit            144 fetch-pack.c   		commit = prio_queue_get(&rev_list);
commit            145 fetch-pack.c   		parse_commit(commit);
commit            146 fetch-pack.c   		parents = commit->parents;
commit            148 fetch-pack.c   		commit->object.flags |= POPPED;
commit            149 fetch-pack.c   		if (!(commit->object.flags & COMMON))
commit            152 fetch-pack.c   		if (commit->object.flags & COMMON) {
commit            154 fetch-pack.c   			commit = NULL;
commit            156 fetch-pack.c   		} else if (commit->object.flags & COMMON_REF)
commit            172 fetch-pack.c   	return commit->object.sha1;
commit            412 fetch-pack.c   					struct commit *commit =
commit            414 fetch-pack.c   					if (!commit)
commit            418 fetch-pack.c   					 && !(commit->object.flags & COMMON)) {
commit            427 fetch-pack.c   					mark_common(commit, 0, 1);
commit            493 fetch-pack.c   		struct commit *commit = (struct commit *)o;
commit            494 fetch-pack.c   		if (!(commit->object.flags & COMPLETE)) {
commit            495 fetch-pack.c   			commit->object.flags |= COMPLETE;
commit            496 fetch-pack.c   			commit_list_insert(commit, &complete);
commit            614 fetch-pack.c   			struct commit *commit = (struct commit *)o;
commit            615 fetch-pack.c   			if (!cutoff || cutoff < commit->date)
commit            616 fetch-pack.c   				cutoff = commit->date;
commit            640 fetch-pack.c   			rev_list_push((struct commit *)o, COMMON_REF | SEEN);
commit            642 fetch-pack.c   			mark_common((struct commit *)o, 1, 1);
commit            329 fsck.c         static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_options *options)
commit            335 fsck.c         	if (parse_commit(commit))
commit            338 fsck.c         	result = options->walk((struct object *)commit->tree, OBJ_TREE, data, options);
commit            343 fsck.c         	parents = commit->parents;
commit            372 fsck.c         		return fsck_walk_commit((struct commit *)obj, data, options);
commit            605 fsck.c         static int fsck_commit_buffer(struct commit *commit, const char *buffer,
commit            613 fsck.c         	if (verify_headers(buffer, size, &commit->object, options))
commit            617 fsck.c         		return report(options, &commit->object, FSCK_MSG_MISSING_TREE, "invalid format - expected 'tree' line");
commit            619 fsck.c         		err = report(options, &commit->object, FSCK_MSG_BAD_TREE_SHA1, "invalid 'tree' line format - bad sha1");
commit            626 fsck.c         			err = report(options, &commit->object, FSCK_MSG_BAD_PARENT_SHA1, "invalid 'parent' line format - bad sha1");
commit            633 fsck.c         	graft = lookup_commit_graft(commit->object.sha1);
commit            634 fsck.c         	parent_count = commit_list_count(commit->parents);
commit            639 fsck.c         			err = report(options, &commit->object, FSCK_MSG_MISSING_GRAFT, "graft objects missing");
commit            645 fsck.c         			err = report(options, &commit->object, FSCK_MSG_MISSING_PARENT, "parent objects missing");
commit            653 fsck.c         		err = fsck_ident(&buffer, &commit->object, options);
commit            658 fsck.c         		err = report(options, &commit->object, FSCK_MSG_MISSING_AUTHOR, "invalid format - expected 'author' line");
commit            660 fsck.c         		err = report(options, &commit->object, FSCK_MSG_MULTIPLE_AUTHORS, "invalid format - multiple 'author' lines");
commit            664 fsck.c         		return report(options, &commit->object, FSCK_MSG_MISSING_COMMITTER, "invalid format - expected 'committer' line");
commit            665 fsck.c         	err = fsck_ident(&buffer, &commit->object, options);
commit            668 fsck.c         	if (!commit->tree)
commit            669 fsck.c         		return report(options, &commit->object, FSCK_MSG_BAD_TREE, "could not load commit's tree %s", sha1_to_hex(tree_sha1));
commit            674 fsck.c         static int fsck_commit(struct commit *commit, const char *data,
commit            677 fsck.c         	const char *buffer = data ?  data : get_commit_buffer(commit, &size);
commit            678 fsck.c         	int ret = fsck_commit_buffer(commit, buffer, size, options);
commit            680 fsck.c         		unuse_commit_buffer(commit, buffer);
commit            799 fsck.c         		return fsck_commit((struct commit *) obj, (const char *) data,
commit             45 graph.c        	struct commit *commit;
commit             90 graph.c        	struct commit *commit;
commit            214 graph.c        	graph->commit = NULL;
commit            280 graph.c        static int graph_is_interesting(struct git_graph *graph, struct commit *commit)
commit            288 graph.c        		if (commit->object.flags & CHILD_SHOWN)
commit            296 graph.c        	return get_commit_action(graph->revs, commit) == commit_show;
commit            324 graph.c        	struct commit_list *parents = graph->commit->parents;
commit            362 graph.c        					      const struct commit *commit)
commit            366 graph.c        		if (graph->columns[i].commit == commit)
commit            373 graph.c        					  struct commit *commit,
commit            383 graph.c        		if (graph->new_columns[i].commit == commit) {
commit            393 graph.c        	graph->new_columns[graph->num_new_columns].commit = commit;
commit            394 graph.c        	graph->new_columns[graph->num_new_columns].color = graph_find_commit_color(graph, commit);
commit            489 graph.c        		struct commit *col_commit;
commit            494 graph.c        			col_commit = graph->commit;
commit            496 graph.c        			col_commit = graph->columns[i].commit;
commit            499 graph.c        		if (col_commit == graph->commit) {
commit            546 graph.c        void graph_update(struct git_graph *graph, struct commit *commit)
commit            553 graph.c        	graph->commit = commit;
commit            660 graph.c        	if (!graph->commit)
commit            721 graph.c        		if (col->commit == graph->commit) {
commit            770 graph.c        	if (graph->commit->object.flags & BOUNDARY) {
commit            779 graph.c        	strbuf_addstr(sb, get_revision_mark(graph->revs, graph->commit));
commit            822 graph.c        		struct commit *col_commit;
commit            826 graph.c        			col_commit = graph->commit;
commit            828 graph.c        			col_commit = graph->columns[i].commit;
commit            831 graph.c        		if (col_commit == graph->commit) {
commit            884 graph.c        						struct commit *commit)
commit            888 graph.c        		if (graph->new_columns[i].commit == commit)
commit            905 graph.c        		struct commit *col_commit;
commit            909 graph.c        			col_commit = graph->commit;
commit            911 graph.c        			col_commit = col->commit;
commit            914 graph.c        		if (col_commit == graph->commit) {
commit           1159 graph.c        		if (col->commit == graph->commit && graph->num_parents > 2)
commit             41 graph.h        void graph_update(struct git_graph *graph, struct commit *commit);
commit           1340 http-push.c    	struct commit *commit;
commit           1344 http-push.c    	while ((commit = get_revision(revs)) != NULL) {
commit           1345 http-push.c    		p = process_tree(commit->tree, p, NULL, "");
commit           1346 http-push.c    		commit->object.flags |= LOCAL;
commit           1347 http-push.c    		if (!(commit->object.flags & UNINTERESTING))
commit           1348 http-push.c    			count += add_send_request(&commit->object, lock);
commit           1593 http-push.c    	struct commit *head = lookup_commit_or_die(head_sha1, "HEAD");
commit           1594 http-push.c    	struct commit *branch = lookup_commit_or_die(remote->old_sha1, remote->name);
commit            472 line-log.c     static struct commit *check_single_commit(struct rev_info *revs)
commit            474 line-log.c     	struct object *commit = NULL;
commit            486 line-log.c     		if (commit)
commit            490 line-log.c     		commit = obj;
commit            494 line-log.c     	if (!commit)
commit            497 line-log.c     	return (struct commit *) commit;
commit            500 line-log.c     static void fill_blob_sha1(struct commit *commit, struct diff_filespec *spec)
commit            505 line-log.c     	if (get_tree_entry(commit->object.sha1, spec->path,
commit            560 line-log.c     parse_lines(struct commit *commit, const char *prefix, struct string_list *args)
commit            587 line-log.c     		fill_blob_sha1(commit, spec);
commit            698 line-log.c     static void add_line_range(struct rev_info *revs, struct commit *commit,
commit            704 line-log.c     	old = lookup_decoration(&revs->line_log_data, &commit->object);
commit            712 line-log.c     		add_decoration(&revs->line_log_data, &commit->object, new);
commit            715 line-log.c     static void clear_commit_line_range(struct rev_info *revs, struct commit *commit)
commit            718 line-log.c     	r = lookup_decoration(&revs->line_log_data, &commit->object);
commit            722 line-log.c     	add_decoration(&revs->line_log_data, &commit->object, NULL);
commit            726 line-log.c     					       struct commit *commit)
commit            731 line-log.c     	ret = lookup_decoration(&revs->line_log_data, &commit->object);
commit            741 line-log.c     	struct commit *commit = NULL;
commit            744 line-log.c     	commit = check_single_commit(rev);
commit            745 line-log.c     	range = parse_lines(commit, prefix, args);
commit            746 line-log.c     	add_line_range(rev, commit, range);
commit            822 line-log.c     			struct commit *commit, struct commit *parent)
commit            824 line-log.c     	assert(commit);
commit            828 line-log.c     			commit->tree->object.sha1, "", opt);
commit           1109 line-log.c     int line_log_print(struct rev_info *rev, struct commit *commit)
commit           1111 line-log.c     	struct line_log_data *range = lookup_line_range(rev, commit);
commit           1118 line-log.c     static int process_ranges_ordinary_commit(struct rev_info *rev, struct commit *commit,
commit           1121 line-log.c     	struct commit *parent = NULL;
commit           1126 line-log.c     	if (commit->parents)
commit           1127 line-log.c     		parent = commit->parents->item;
commit           1129 line-log.c     	queue_diffs(range, &rev->diffopt, &queue, commit, parent);
commit           1136 line-log.c     static int process_ranges_merge_commit(struct rev_info *rev, struct commit *commit,
commit           1141 line-log.c     	struct commit **parents;
commit           1144 line-log.c     	int nparents = commit_list_count(commit->parents);
commit           1153 line-log.c     	p = commit->parents;
commit           1157 line-log.c     		queue_diffs(range, &rev->diffopt, &diffqueues[i], commit, parents[i]);
commit           1170 line-log.c     			clear_commit_line_range(rev, commit);
commit           1171 line-log.c     			commit_list_append(parents[i], &commit->parents);
commit           1188 line-log.c     	clear_commit_line_range(rev, commit);
commit           1198 line-log.c     static int process_ranges_arbitrary_commit(struct rev_info *rev, struct commit *commit)
commit           1200 line-log.c     	struct line_log_data *range = lookup_line_range(rev, commit);
commit           1204 line-log.c     		if (!commit->parents || !commit->parents->next)
commit           1205 line-log.c     			changed = process_ranges_ordinary_commit(rev, commit, range);
commit           1207 line-log.c     			changed = process_ranges_merge_commit(rev, commit, range);
commit           1211 line-log.c     		commit->object.flags |= TREESAME;
commit           1216 line-log.c     static enum rewrite_result line_log_rewrite_one(struct rev_info *rev, struct commit **pp)
commit           1219 line-log.c     		struct commit *p = *pp;
commit           1234 line-log.c     	struct commit *commit;
commit           1240 line-log.c     		commit = list->item;
commit           1241 line-log.c     		if (process_ranges_arbitrary_commit(rev, commit)) {
commit              7 line-log.h     struct commit;
commit             61 line-log.h     extern int line_log_print(struct rev_info *rev, struct commit *commit);
commit            132 list-objects.c static void mark_edge_parents_uninteresting(struct commit *commit,
commit            138 list-objects.c 	for (parents = commit->parents; parents; parents = parents->next) {
commit            139 list-objects.c 		struct commit *parent = parents->item;
commit            156 list-objects.c 		struct commit *commit = list->item;
commit            158 list-objects.c 		if (commit->object.flags & UNINTERESTING) {
commit            159 list-objects.c 			mark_tree_uninteresting(commit->tree);
commit            160 list-objects.c 			if (revs->edge_hint_aggressive && !(commit->object.flags & SHOWN)) {
commit            161 list-objects.c 				commit->object.flags |= SHOWN;
commit            162 list-objects.c 				show_edge(commit);
commit            166 list-objects.c 		mark_edge_parents_uninteresting(commit, revs, show_edge);
commit            171 list-objects.c 			struct commit *commit = (struct commit *)obj;
commit            174 list-objects.c 			mark_tree_uninteresting(commit->tree);
commit            177 list-objects.c 				show_edge(commit);
commit            194 list-objects.c 	struct commit *commit;
commit            198 list-objects.c 	while ((commit = get_revision(revs)) != NULL) {
commit            203 list-objects.c 		if (commit->tree)
commit            204 list-objects.c 			add_pending_tree(revs, commit->tree);
commit            205 list-objects.c 		show_commit(commit, data);
commit              4 list-objects.h typedef void (*show_commit_fn)(struct commit *, void *);
commit              8 list-objects.h typedef void (*show_edge_fn)(struct commit *);
commit            144 log-tree.c     	struct commit *commit = lookup_commit(graft->oid.hash);
commit            145 log-tree.c     	if (!commit)
commit            147 log-tree.c     	add_name_decoration(DECORATION_GRAFTED, "grafted", &commit->object);
commit            163 log-tree.c     static void show_parents(struct commit *commit, int abbrev)
commit            166 log-tree.c     	for (p = commit->parents; p ; p = p->next) {
commit            167 log-tree.c     		struct commit *parent = p->item;
commit            172 log-tree.c     static void show_children(struct rev_info *opt, struct commit *commit, int abbrev)
commit            174 log-tree.c     	struct commit_list *p = lookup_decoration(&opt->children, &commit->object);
commit            231 log-tree.c     			const struct commit *commit,
commit            244 log-tree.c     	decoration = get_name_decoration(&commit->object);
commit            285 log-tree.c     void show_decorations(struct rev_info *opt, struct commit *commit)
commit            289 log-tree.c     	if (opt->show_source && commit->util)
commit            290 log-tree.c     		printf("\t%s", (char *) commit->util);
commit            293 log-tree.c     	format_decorations(&sb, commit, opt->diffopt.use_color);
commit            327 log-tree.c     		       struct commit *commit,
commit            333 log-tree.c     	format_commit_message(commit, "%f", &subject, &ctx);
commit            338 log-tree.c     void log_write_email_headers(struct rev_info *opt, struct commit *commit,
commit            345 log-tree.c     	const char *name = sha1_to_hex(commit->object.sha1);
commit            407 log-tree.c     			fmt_output_commit(&filename, commit, opt);
commit            442 log-tree.c     static void show_signature(struct rev_info *opt, struct commit *commit)
commit            449 log-tree.c     	if (parse_signed_commit(commit, &payload, &signature) <= 0)
commit            466 log-tree.c     static int which_parent(const unsigned char *sha1, const struct commit *commit)
commit            471 log-tree.c     	for (nth = 0, parent = commit->parents; parent; parent = parent->next) {
commit            479 log-tree.c     static int is_common_merge(const struct commit *commit)
commit            481 log-tree.c     	return (commit->parents
commit            482 log-tree.c     		&& commit->parents->next
commit            483 log-tree.c     		&& !commit->parents->next->next);
commit            486 log-tree.c     static void show_one_mergetag(struct commit *commit,
commit            505 log-tree.c     	else if (is_common_merge(commit) &&
commit            507 log-tree.c     			  commit->parents->next->item->object.sha1))
commit            510 log-tree.c     	else if ((nth = which_parent(tag->tagged->sha1, commit)) < 0)
commit            536 log-tree.c     static void show_mergetag(struct rev_info *opt, struct commit *commit)
commit            538 log-tree.c     	for_each_mergetag(show_one_mergetag, commit, opt);
commit            545 log-tree.c     	struct commit *commit = log->commit, *parent = log->parent;
commit            555 log-tree.c     			put_revision_mark(opt, commit);
commit            556 log-tree.c     		fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit), stdout);
commit            558 log-tree.c     			show_parents(commit, abbrev_commit);
commit            560 log-tree.c     			show_children(opt, commit, abbrev_commit);
commit            561 log-tree.c     		show_decorations(opt, commit);
commit            607 log-tree.c     		log_write_email_headers(opt, commit, &ctx.subject, &extra_headers,
commit            615 log-tree.c     			put_revision_mark(opt, commit);
commit            616 log-tree.c     		fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit),
commit            619 log-tree.c     			show_parents(commit, abbrev_commit);
commit            621 log-tree.c     			show_children(opt, commit, abbrev_commit);
commit            627 log-tree.c     		show_decorations(opt, commit);
commit            651 log-tree.c     		show_signature(opt, commit);
commit            652 log-tree.c     		show_mergetag(opt, commit);
commit            655 log-tree.c     	if (!get_cached_commit_buffer(commit, NULL))
commit            663 log-tree.c     		format_display_notes(commit->object.sha1, &notebuf,
commit            689 log-tree.c     	pretty_print_commit(&ctx, commit, &msgbuf);
commit            784 log-tree.c     static int do_diff_combined(struct rev_info *opt, struct commit *commit)
commit            786 log-tree.c     	diff_tree_combined_merge(commit, opt->dense_combined_merges, opt);
commit            795 log-tree.c     static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log_info *log)
commit            804 log-tree.c     	parse_commit_or_die(commit);
commit            805 log-tree.c     	sha1 = commit->tree->object.sha1;
commit            808 log-tree.c     	parents = get_saved_parents(opt, commit);
commit            822 log-tree.c     			return do_diff_combined(opt, commit);
commit            842 log-tree.c     		struct commit *parent = parents->item;
commit            861 log-tree.c     int log_tree_commit(struct rev_info *opt, struct commit *commit)
commit            866 log-tree.c     	log.commit = commit;
commit            871 log-tree.c     		return line_log_print(opt, commit);
commit            875 log-tree.c     	shown = log_tree_diff(opt, commit, &log);
commit              7 log-tree.h     	struct commit *commit, *parent;
commit             13 log-tree.h     int log_tree_commit(struct rev_info *, struct commit *);
commit             16 log-tree.h     void format_decorations_extended(struct strbuf *sb, const struct commit *commit,
commit             21 log-tree.h     #define format_decorations(strbuf, commit, color) \
commit             22 log-tree.h     			     format_decorations_extended((strbuf), (commit), (color), " (", ", ", ")")
commit             23 log-tree.h     void show_decorations(struct rev_info *opt, struct commit *commit);
commit             24 log-tree.h     void log_write_email_headers(struct rev_info *opt, struct commit *commit,
commit             31 log-tree.h     void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *);
commit             42 merge-recursive.c static struct commit *make_virtual_commit(struct tree *tree, const char *comment)
commit             44 merge-recursive.c 	struct commit *commit = alloc_commit_node();
commit             48 merge-recursive.c 	desc->obj = (struct object *)commit;
commit             49 merge-recursive.c 	commit->tree = tree;
commit             50 merge-recursive.c 	commit->util = desc;
commit             51 merge-recursive.c 	commit->object.parsed = 1;
commit             52 merge-recursive.c 	return commit;
commit            178 merge-recursive.c static void output_commit_title(struct merge_options *o, struct commit *commit)
commit            184 merge-recursive.c 	if (commit->util)
commit            185 merge-recursive.c 		printf("virtual %s\n", merge_remote_util(commit)->name);
commit            187 merge-recursive.c 		printf("%s ", find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
commit            188 merge-recursive.c 		if (parse_commit(commit) != 0)
commit            192 merge-recursive.c 			const char *msg = get_commit_buffer(commit, NULL);
commit            196 merge-recursive.c 			unuse_commit_buffer(commit, msg);
commit           1893 merge-recursive.c 		    struct commit *h1,
commit           1894 merge-recursive.c 		    struct commit *h2,
commit           1896 merge-recursive.c 		    struct commit **result)
commit           1899 merge-recursive.c 	struct commit *merged_common_ancestors;
commit           1977 merge-recursive.c static struct commit *get_ref(const unsigned char *sha1, const char *name)
commit           1988 merge-recursive.c 	if (parse_commit((struct commit *)object))
commit           1990 merge-recursive.c 	return (struct commit *)object;
commit           1998 merge-recursive.c 			    struct commit **result)
commit           2002 merge-recursive.c 	struct commit *head_commit = get_ref(head, o->branch1);
commit           2003 merge-recursive.c 	struct commit *next_commit = get_ref(merge, o->branch2);
commit           2009 merge-recursive.c 			struct commit *base;
commit             34 merge-recursive.h 		    struct commit *h1,
commit             35 merge-recursive.h 		    struct commit *h2,
commit             37 merge-recursive.h 		    struct commit **result);
commit             55 merge-recursive.h 			    struct commit **result);
commit             10 merge.c        static const char *merge_argument(struct commit *commit)
commit             12 merge.c        	if (commit)
commit             13 merge.c        		return sha1_to_hex(commit->object.sha1);
commit              9 notes-cache.c  	struct commit *commit;
commit             17 notes-cache.c  	commit = lookup_commit_reference_gently(sha1, 1);
commit             18 notes-cache.c  	if (!commit)
commit             22 notes-cache.c  	format_commit_message(commit, "%s", &msg, &pretty_ctx);
commit            540 notes-merge.c  	struct commit *local, *remote;
commit            663 notes-merge.c  		       struct commit *partial_commit,
commit             70 notes-merge.h  		       struct commit *partial_commit,
commit             21 notes-utils.c  			struct commit *parent = lookup_commit(parent_sha1);
commit            164 object.c       			((struct commit *)obj)->index = alloc_commit_index();
commit            211 object.c       		struct commit *commit = lookup_commit(sha1);
commit            212 object.c       		if (commit) {
commit            213 object.c       			if (parse_commit_buffer(commit, buffer, size))
commit            215 object.c       			if (!get_cached_commit_buffer(commit, NULL)) {
commit            216 object.c       				set_commit_buffer(commit, buffer, size);
commit            219 object.c       			obj = &commit->object;
commit             15 pack-bitmap-write.c 	struct commit *commit;
commit            110 pack-bitmap-write.c static inline void push_bitmapped_commit(struct commit *commit, struct ewah_bitmap *reused)
commit            117 pack-bitmap-write.c 	writer.selected[writer.selected_nr].commit = commit;
commit            159 pack-bitmap-write.c static void show_commit(struct commit *commit, void *data)
commit            161 pack-bitmap-write.c 	mark_as_seen((struct object *)commit);
commit            165 pack-bitmap-write.c add_to_include_set(struct bitmap *base, struct commit *commit)
commit            168 pack-bitmap-write.c 	uint32_t bitmap_pos = find_object_pos(commit->object.sha1);
commit            173 pack-bitmap-write.c 	hash_pos = kh_get_sha1(writer.bitmaps, commit->object.sha1);
commit            185 pack-bitmap-write.c should_include(struct commit *commit, void *_data)
commit            189 pack-bitmap-write.c 	if (!add_to_include_set(base, commit)) {
commit            190 pack-bitmap-write.c 		struct commit_list *parent = commit->parents;
commit            192 pack-bitmap-write.c 		mark_as_seen((struct object *)commit);
commit            280 pack-bitmap-write.c 		object = (struct object *)stored->commit;
commit            285 pack-bitmap-write.c 			     !in_merge_bases(writer.selected[i + 1].commit,
commit            286 pack-bitmap-write.c 					     stored->commit))) {
commit            355 pack-bitmap-write.c 	struct commit *a = *(struct commit **)_a;
commit            356 pack-bitmap-write.c 	struct commit *b = *(struct commit **)_b;
commit            383 pack-bitmap-write.c void bitmap_writer_select_commits(struct commit **indexed_commits,
commit            403 pack-bitmap-write.c 		struct commit *chosen = NULL;
commit            422 pack-bitmap-write.c 				struct commit *cm = indexed_commits[i + j];
commit            477 pack-bitmap-write.c 			sha1_pos(stored->commit->object.sha1, index, index_nr, sha1_access);
commit            442 pack-bitmap.c  static void show_commit(struct commit *commit, void *data)
commit            469 pack-bitmap.c  static int should_include(struct commit *commit, void *_data)
commit            474 pack-bitmap.c  	bitmap_pos = bitmap_position(commit->object.sha1);
commit            476 pack-bitmap.c  		bitmap_pos = ext_index_add_object((struct object *)commit, NULL);
commit            478 pack-bitmap.c  	if (!add_to_include_set(data, commit->object.sha1, bitmap_pos)) {
commit            479 pack-bitmap.c  		struct commit_list *parent = commit->parents;
commit            920 pack-bitmap.c  static void test_show_commit(struct commit *commit, void *data)
commit            925 pack-bitmap.c  	bitmap_pos = bitmap_position(commit->object.sha1);
commit            927 pack-bitmap.c  		die("Object not in bitmap: %s\n", sha1_to_hex(commit->object.sha1));
commit             49 pack-bitmap.h  void bitmap_writer_select_commits(struct commit **indexed_commits,
commit             83 parse-options-cb.c 	struct commit *commit;
commit             89 parse-options-cb.c 	commit = lookup_commit_reference(sha1);
commit             90 parse-options-cb.c 	if (!commit)
commit             92 parse-options-cb.c 	commit_list_insert(commit, opt->value);
commit              7 patch-ids.c    static int commit_patch_id(struct commit *commit, struct diff_options *options,
commit             10 patch-ids.c    	if (commit->parents)
commit             11 patch-ids.c    		diff_tree_sha1(commit->parents->item->object.sha1,
commit             12 patch-ids.c    		               commit->object.sha1, "", options);
commit             14 patch-ids.c    		diff_root_tree_sha1(commit->object.sha1, "", options);
commit             58 patch-ids.c    static struct patch_id *add_commit(struct commit *commit,
commit             67 patch-ids.c    	if (commit_patch_id(commit, &ids->diffopts, sha1))
commit             95 patch-ids.c    struct patch_id *has_commit_patch_id(struct commit *commit,
commit             98 patch-ids.c    	return add_commit(commit, ids, 1);
commit            101 patch-ids.c    struct patch_id *add_commit_patch_id(struct commit *commit,
commit            104 patch-ids.c    	return add_commit(commit, ids, 0);
commit             18 patch-ids.h    struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
commit             19 patch-ids.h    struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
commit            532 pretty.c       			   struct strbuf *sb, const struct commit *commit)
commit            534 pretty.c       	struct commit_list *parent = commit->parents;
commit            543 pretty.c       		struct commit *p = parent->item;
commit            594 pretty.c       const char *logmsg_reencode(const struct commit *commit,
commit            601 pretty.c       	const char *msg = get_commit_buffer(commit, NULL);
commit            629 pretty.c       		if (msg == get_cached_commit_buffer(commit, NULL))
commit            643 pretty.c       			unuse_commit_buffer(commit, msg);
commit            762 pretty.c       	const struct commit *commit;
commit           1055 pretty.c       	const struct commit *commit = c->commit;
commit           1121 pretty.c       	if (!commit->object.parsed)
commit           1122 pretty.c       		parse_object(commit->object.sha1);
commit           1127 pretty.c       		strbuf_addstr(sb, sha1_to_hex(commit->object.sha1));
commit           1136 pretty.c       		strbuf_addstr(sb, find_unique_abbrev(commit->object.sha1,
commit           1142 pretty.c       		strbuf_addstr(sb, sha1_to_hex(commit->tree->object.sha1));
commit           1147 pretty.c       		strbuf_addstr(sb, find_unique_abbrev(commit->tree->object.sha1,
commit           1152 pretty.c       		for (p = commit->parents; p; p = p->next) {
commit           1153 pretty.c       			if (p != commit->parents)
commit           1161 pretty.c       		for (p = commit->parents; p; p = p->next) {
commit           1162 pretty.c       			if (p != commit->parents)
commit           1172 pretty.c       		strbuf_addstr(sb, get_revision_mark(NULL, commit));
commit           1176 pretty.c       		format_decorations(sb, commit, c->auto_color);
commit           1180 pretty.c       		format_decorations_extended(sb, commit, c->auto_color, "", ", ", "");
commit           1217 pretty.c       			check_commit_signature(c->commit, &(c->signature_check));
commit           1467 pretty.c       void format_commit_message(const struct commit *commit,
commit           1476 pretty.c       	context.commit = commit;
commit           1483 pretty.c       	context.message = logmsg_reencode(commit,
commit           1509 pretty.c       	unuse_commit_buffer(commit, context.message);
commit           1514 pretty.c       		      const struct commit *commit,
commit           1544 pretty.c       			unsigned num = commit_list_count(commit->parents);
commit           1547 pretty.c       			add_merge_info(pp, sb, commit);
commit           1663 pretty.c       			 const struct commit *commit,
commit           1674 pretty.c       		format_commit_message(commit, user_format, sb, pp);
commit           1679 pretty.c       	msg = reencoded = logmsg_reencode(commit, NULL, encoding);
commit           1707 pretty.c       	pp_header(pp, encoding, commit, &msg, sb);
commit           1736 pretty.c       	unuse_commit_buffer(commit, reencoded);
commit           1739 pretty.c       void pp_commit_easy(enum cmit_fmt fmt, const struct commit *commit,
commit           1744 pretty.c       	pretty_print_commit(&pp, commit, sb);
commit             52 reachable.c    static void mark_commit(struct commit *c, void *data)
commit            261 ref-filter.c   	struct commit *commit = (struct commit *) obj;
commit            272 ref-filter.c   			strcpy(s, sha1_to_hex(commit->tree->object.sha1));
commit            277 ref-filter.c   			v->ul = commit_list_count(commit->parents);
commit            282 ref-filter.c   			int num = commit_list_count(commit->parents);
commit            287 ref-filter.c   			for (i = 0, parents = commit->parents;
commit            290 ref-filter.c   				struct commit *parent = parents->item;
commit             84 reflog-walk.c  		struct commit *commit;
commit             90 reflog-walk.c  static struct commit_info *get_commit_info(struct commit *commit,
commit             95 reflog-walk.c  		if (lifo->items[i].commit == commit) {
commit            110 reflog-walk.c  static void add_commit_info(struct commit *commit, void *util,
commit            116 reflog-walk.c  	info->commit = commit;
commit            143 reflog-walk.c  		struct commit *commit, const char *name)
commit            153 reflog-walk.c  	if (commit->object.flags & UNINTERESTING)
commit            216 reflog-walk.c  	add_commit_info(commit, commit_reflog, &info->reflogs);
commit            220 reflog-walk.c  void fake_reflog_parent(struct reflog_walk_info *info, struct commit *commit)
commit            223 reflog-walk.c  		get_commit_info(commit, &info->reflogs, 0);
commit            233 reflog-walk.c  		commit->parents = NULL;
commit            240 reflog-walk.c  	commit_info->commit = (struct commit *)parse_object(reflog->osha1);
commit            241 reflog-walk.c  	if (!commit_info->commit) {
commit            242 reflog-walk.c  		commit->parents = NULL;
commit            246 reflog-walk.c  	commit->parents = xcalloc(1, sizeof(struct commit_list));
commit            247 reflog-walk.c  	commit->parents->item = commit_info->commit;
commit             10 reflog-walk.h  		struct commit *commit, const char *name);
commit             12 reflog-walk.h  		struct commit *commit);
commit           1327 remote.c       	struct commit **tip;
commit           1333 remote.c       	struct commit *commit;
commit           1337 remote.c       	commit = lookup_commit_reference_gently(sha1, 1);
commit           1338 remote.c       	if (!commit || (commit->object.flags & TMP_MARK))
commit           1340 remote.c       	commit->object.flags |= TMP_MARK;
commit           1342 remote.c       	tips->tip[tips->nr++] = commit;
commit           1395 remote.c       			struct commit *commit;
commit           1399 remote.c       			commit = lookup_commit_reference_gently(ref->new_sha1, 1);
commit           1400 remote.c       			if (!commit)
commit           1408 remote.c       			if (!in_merge_bases_many(commit, sent_tips.nr, sent_tips.tip))
commit           1988 remote.c       	struct commit *old, *new;
commit           1999 remote.c       	old = (struct commit *) o;
commit           2004 remote.c       	new = (struct commit *) o;
commit           2037 remote.c       	struct commit *ours, *theirs;
commit           2090 remote.c       		struct commit *c = get_revision(&revs);
commit            148 revision.c     void mark_parents_uninteresting(struct commit *commit)
commit            152 revision.c     	for (l = commit->parents; l; l = l->next)
commit            156 revision.c     		struct commit *commit = parents->item;
commit            161 revision.c     		while (commit) {
commit            170 revision.c     			if (!has_sha1_file(commit->object.sha1))
commit            171 revision.c     				commit->object.parsed = 1;
commit            173 revision.c     			if (commit->object.flags & UNINTERESTING)
commit            176 revision.c     			commit->object.flags |= UNINTERESTING;
commit            186 revision.c     			if (!commit->parents)
commit            189 revision.c     			for (l = commit->parents->next; l; l = l->next)
commit            191 revision.c     			commit = commit->parents->item;
commit            213 revision.c     					 (struct commit *)obj,
commit            270 revision.c     static struct commit *handle_commit(struct rev_info *revs,
commit            310 revision.c     		struct commit *commit = (struct commit *)object;
commit            311 revision.c     		if (parse_commit(commit) < 0)
commit            314 revision.c     			mark_parents_uninteresting(commit);
commit            317 revision.c     		if (revs->show_source && !commit->util)
commit            318 revision.c     			commit->util = xstrdup(name);
commit            319 revision.c     		return commit;
commit            353 revision.c     				   struct commit **interesting_cache)
commit            358 revision.c     		struct commit *commit = *interesting_cache;
commit            359 revision.c     		if (!(commit->object.flags & UNINTERESTING))
commit            364 revision.c     		struct commit *commit = list->item;
commit            366 revision.c     		if (commit->object.flags & UNINTERESTING)
commit            369 revision.c     		*interesting_cache = commit;
commit            401 revision.c     static inline int relevant_commit(struct commit *commit)
commit            403 revision.c     	return (commit->object.flags & (UNINTERESTING | BOTTOM)) != UNINTERESTING;
commit            411 revision.c     static struct commit *one_relevant_parent(const struct rev_info *revs,
commit            415 revision.c     	struct commit *relevant = NULL;
commit            438 revision.c     		struct commit *commit = list->item;
commit            440 revision.c     		if (relevant_commit(commit)) {
commit            443 revision.c     			relevant = commit;
commit            486 revision.c     			    struct commit *parent, struct commit *commit)
commit            489 revision.c     	struct tree *t2 = commit->tree;
commit            501 revision.c     		if (get_name_decoration(&commit->object))
commit            522 revision.c     static int rev_same_tree_as_empty(struct rev_info *revs, struct commit *commit)
commit            525 revision.c     	struct tree *t1 = commit->tree;
commit            542 revision.c     static struct treesame_state *initialise_treesame(struct rev_info *revs, struct commit *commit)
commit            544 revision.c     	unsigned n = commit_list_count(commit->parents);
commit            547 revision.c     	add_decoration(&revs->treesame, &commit->object, st);
commit            558 revision.c     static int compact_treesame(struct rev_info *revs, struct commit *commit, unsigned nth_parent)
commit            563 revision.c     	if (!commit->parents) {
commit            570 revision.c     		old_same = !!(commit->object.flags & TREESAME);
commit            571 revision.c     		if (rev_same_tree_as_empty(revs, commit))
commit            572 revision.c     			commit->object.flags |= TREESAME;
commit            574 revision.c     			commit->object.flags &= ~TREESAME;
commit            578 revision.c     	st = lookup_decoration(&revs->treesame, &commit->object);
commit            593 revision.c     		if (commit->parents->next)
commit            596 revision.c     			commit->object.flags |= TREESAME;
commit            598 revision.c     			commit->object.flags &= ~TREESAME;
commit            599 revision.c     		free(add_decoration(&revs->treesame, &commit->object, NULL));
commit            605 revision.c     static unsigned update_treesame(struct rev_info *revs, struct commit *commit)
commit            607 revision.c     	if (commit->parents && commit->parents->next) {
commit            614 revision.c     		st = lookup_decoration(&revs->treesame, &commit->object);
commit            616 revision.c     			die("update_treesame %s", sha1_to_hex(commit->object.sha1));
commit            619 revision.c     		for (p = commit->parents, n = 0; p; n++, p = p->next) {
commit            627 revision.c     			commit->object.flags &= ~TREESAME;
commit            629 revision.c     			commit->object.flags |= TREESAME;
commit            632 revision.c     	return commit->object.flags & TREESAME;
commit            650 revision.c     static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
commit            663 revision.c     	if (!commit->tree)
commit            666 revision.c     	if (!commit->parents) {
commit            667 revision.c     		if (rev_same_tree_as_empty(revs, commit))
commit            668 revision.c     			commit->object.flags |= TREESAME;
commit            676 revision.c     	if (!revs->dense && !commit->parents->next)
commit            679 revision.c     	for (pp = &commit->parents, nth_parent = 0, relevant_parents = 0;
commit            682 revision.c     		struct commit *p = parent->item;
commit            706 revision.c     			    !(commit->object.flags & UNINTERESTING)) {
commit            707 revision.c     				ts = initialise_treesame(revs, commit);
commit            714 revision.c     			    sha1_to_hex(commit->object.sha1),
commit            716 revision.c     		switch (rev_compare_tree(revs, p, commit)) {
commit            730 revision.c     			commit->parents = parent;
commit            731 revision.c     			commit->object.flags |= TREESAME;
commit            747 revision.c     					    sha1_to_hex(commit->object.sha1),
commit            760 revision.c     		die("bad tree compare for commit %s", sha1_to_hex(commit->object.sha1));
commit            774 revision.c     		commit->object.flags |= TREESAME;
commit            777 revision.c     static void commit_list_insert_by_date_cached(struct commit *p, struct commit_list **head,
commit            791 revision.c     static int add_parents_to_list(struct rev_info *revs, struct commit *commit,
commit            794 revision.c     	struct commit_list *parent = commit->parents;
commit            798 revision.c     	if (commit->object.flags & ADDED)
commit            800 revision.c     	commit->object.flags |= ADDED;
commit            803 revision.c     	    !revs->include_check(commit, revs->include_check_data))
commit            818 revision.c     	if (commit->object.flags & UNINTERESTING) {
commit            820 revision.c     			struct commit *p = parent->item;
commit            841 revision.c     	try_to_simplify_commit(revs, commit);
commit            846 revision.c     	left_flag = (commit->object.flags & SYMMETRIC_LEFT);
commit            848 revision.c     	for (parent = commit->parents; parent; parent = parent->next) {
commit            849 revision.c     		struct commit *p = parent->item;
commit            854 revision.c     			p->util = commit->util;
commit            876 revision.c     		struct commit *commit = p->item;
commit            877 revision.c     		unsigned flags = commit->object.flags;
commit            895 revision.c     		struct commit *commit = p->item;
commit            896 revision.c     		unsigned flags = commit->object.flags;
commit            907 revision.c     		commit->util = add_commit_patch_id(commit, &ids);
commit            915 revision.c     		struct commit *commit = p->item;
commit            917 revision.c     		unsigned flags = commit->object.flags;
commit            931 revision.c     		id = has_commit_patch_id(commit, &ids);
commit            935 revision.c     		commit->object.flags |= cherry_flag;
commit            940 revision.c     		struct commit *commit = p->item;
commit            943 revision.c     		ent = commit->util;
commit            947 revision.c     			commit->object.flags |= cherry_flag;
commit            948 revision.c     		commit->util = NULL;
commit            958 revision.c     			     struct commit **interesting_cache)
commit           1014 revision.c     			struct commit *c = p->item;
commit           1040 revision.c     		struct commit *c = p->item;
commit           1077 revision.c     		struct commit *commit = p->item;
commit           1080 revision.c     			if (commit->object.flags & SYMMETRIC_LEFT)
commit           1081 revision.c     				commit->object.flags |= SHOWN;
commit           1083 revision.c     			if (!(commit->object.flags & SYMMETRIC_LEFT))
commit           1084 revision.c     				commit->object.flags |= SHOWN;
commit           1096 revision.c     	struct commit *interesting_cache = NULL;
commit           1106 revision.c     		struct commit *commit = list->item;
commit           1107 revision.c     		struct object *obj = &commit->object;
commit           1113 revision.c     		if (commit == interesting_cache)
commit           1116 revision.c     		if (revs->max_age != -1 && (commit->date < revs->max_age))
commit           1118 revision.c     		if (add_parents_to_list(revs, commit, &list, NULL) < 0)
commit           1121 revision.c     			mark_parents_uninteresting(commit);
commit           1123 revision.c     				p = &commit_list_insert(commit, p)->next;
commit           1132 revision.c     		if (revs->min_age != -1 && (commit->date > revs->min_age))
commit           1134 revision.c     		date = commit->date;
commit           1135 revision.c     		p = &commit_list_insert(commit, p)->next;
commit           1161 revision.c     			struct commit *c = list->item;
commit           1370 revision.c     	struct commit *commit;
commit           1392 revision.c     	commit = (struct commit *)it;
commit           1393 revision.c     	for (parents = commit->parents; parents; parents = parents->next) {
commit           1453 revision.c     	struct commit *head, *other;
commit           1560 revision.c     				struct commit *a, *b;
commit           1564 revision.c     				     ? (struct commit *)a_obj
commit           1567 revision.c     				     ? (struct commit *)b_obj
commit           2400 revision.c     static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child)
commit           2408 revision.c     static int remove_duplicate_parents(struct rev_info *revs, struct commit *commit)
commit           2410 revision.c     	struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object);
commit           2415 revision.c     	pp = &commit->parents;
commit           2418 revision.c     		struct commit *parent = p->item;
commit           2422 revision.c     				compact_treesame(revs, commit, surviving_parents);
commit           2430 revision.c     	for (p = commit->parents; p; p = p->next) {
commit           2438 revision.c     	struct commit *simplified;
commit           2441 revision.c     static struct merge_simplify_state *locate_simplify_state(struct rev_info *revs, struct commit *commit)
commit           2445 revision.c     	st = lookup_decoration(&revs->merge_simplification, &commit->object);
commit           2448 revision.c     		add_decoration(&revs->merge_simplification, &commit->object, st);
commit           2453 revision.c     static int mark_redundant_parents(struct rev_info *revs, struct commit *commit)
commit           2455 revision.c     	struct commit_list *h = reduce_heads(commit->parents);
commit           2460 revision.c     	int orig_cnt = commit_list_count(commit->parents);
commit           2468 revision.c     	po = commit->parents;
commit           2489 revision.c     static int mark_treesame_root_parents(struct rev_info *revs, struct commit *commit)
commit           2494 revision.c     	for (p = commit->parents; p; p = p->next) {
commit           2495 revision.c     		struct commit *parent = p->item;
commit           2510 revision.c     static int leave_one_treesame_to_parent(struct rev_info *revs, struct commit *commit)
commit           2512 revision.c     	struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object);
commit           2513 revision.c     	struct commit *unmarked = NULL, *marked = NULL;
commit           2517 revision.c     	for (p = commit->parents, n = 0; p; p = p->next, n++) {
commit           2572 revision.c     static int remove_marked_parents(struct rev_info *revs, struct commit *commit)
commit           2577 revision.c     	pp = &commit->parents;
commit           2580 revision.c     		struct commit *parent = p->item;
commit           2586 revision.c     			compact_treesame(revs, commit, nth_parent);
commit           2594 revision.c     	if (removed && !(commit->object.flags & TREESAME))
commit           2595 revision.c     		update_treesame(revs, commit);
commit           2600 revision.c     static struct commit_list **simplify_one(struct rev_info *revs, struct commit *commit, struct commit_list **tail)
commit           2603 revision.c     	struct commit *parent;
commit           2607 revision.c     	st = locate_simplify_state(revs, commit);
commit           2620 revision.c     	if ((commit->object.flags & UNINTERESTING) || !commit->parents) {
commit           2621 revision.c     		st->simplified = commit;
commit           2630 revision.c     	for (cnt = 0, p = commit->parents; p; p = p->next) {
commit           2640 revision.c     		tail = &commit_list_insert(commit, tail)->next;
commit           2649 revision.c     	for (p = commit->parents; p; p = p->next) {
commit           2659 revision.c     		cnt = remove_duplicate_parents(revs, commit);
commit           2681 revision.c     		int marked = mark_redundant_parents(revs, commit);
commit           2682 revision.c     		marked += mark_treesame_root_parents(revs, commit);
commit           2684 revision.c     			marked -= leave_one_treesame_to_parent(revs, commit);
commit           2686 revision.c     			cnt = remove_marked_parents(revs, commit);
commit           2700 revision.c     	    (commit->object.flags & UNINTERESTING) ||
commit           2701 revision.c     	    !(commit->object.flags & TREESAME) ||
commit           2702 revision.c     	    (parent = one_relevant_parent(revs, commit->parents)) == NULL)
commit           2703 revision.c     		st->simplified = commit;
commit           2715 revision.c     	struct commit *commit;
commit           2723 revision.c     		commit = list->item;
commit           2729 revision.c     		commit_list_insert(commit, &yet_to_do);
commit           2736 revision.c     			commit = list->item;
commit           2740 revision.c     			tail = simplify_one(revs, commit, tail);
commit           2751 revision.c     		commit = list->item;
commit           2755 revision.c     		st = locate_simplify_state(revs, commit);
commit           2756 revision.c     		if (st->simplified == commit)
commit           2757 revision.c     			tail = &commit_list_insert(commit, tail)->next;
commit           2765 revision.c     		struct commit *commit = l->item;
commit           2768 revision.c     		for (p = commit->parents; p; p = p->next)
commit           2769 revision.c     			add_child(revs, p->item, commit);
commit           2790 revision.c     		struct commit *commit = handle_commit(revs, e);
commit           2791 revision.c     		if (commit) {
commit           2792 revision.c     			if (!(commit->object.flags & SEEN)) {
commit           2793 revision.c     				commit->object.flags |= SEEN;
commit           2794 revision.c     				next = commit_list_append(commit, next);
commit           2824 revision.c     static enum rewrite_result rewrite_one(struct rev_info *revs, struct commit **pp)
commit           2829 revision.c     		struct commit *p = *pp;
commit           2845 revision.c     int rewrite_parents(struct rev_info *revs, struct commit *commit,
commit           2848 revision.c     	struct commit_list **pp = &commit->parents;
commit           2862 revision.c     	remove_duplicate_parents(revs, commit);
commit           2911 revision.c     static int commit_match(struct commit *commit, struct rev_info *opt)
commit           2936 revision.c     	message = logmsg_reencode(commit, NULL, encoding);
commit           2954 revision.c     		format_display_notes(commit->object.sha1, &buf, encoding, 1);
commit           2971 revision.c     	unuse_commit_buffer(commit, message);
commit           2980 revision.c     enum commit_action get_commit_action(struct rev_info *revs, struct commit *commit)
commit           2982 revision.c     	if (commit->object.flags & SHOWN)
commit           2984 revision.c     	if (revs->unpacked && has_sha1_pack(commit->object.sha1))
commit           2988 revision.c     	if (commit->object.flags & UNINTERESTING)
commit           2990 revision.c     	if (revs->min_age != -1 && (commit->date > revs->min_age))
commit           2993 revision.c     		int n = commit_list_count(commit->parents);
commit           2998 revision.c     	if (!commit_match(commit, revs))
commit           3002 revision.c     		if (commit->object.flags & TREESAME) {
commit           3015 revision.c     			for (n = 0, p = commit->parents; p; p = p->next)
commit           3033 revision.c     static void save_parents(struct rev_info *revs, struct commit *commit)
commit           3042 revision.c     	pp = saved_parents_at(revs->saved_parents_slab, commit);
commit           3055 revision.c     	if (commit->parents)
commit           3056 revision.c     		*pp = copy_commit_list(commit->parents);
commit           3067 revision.c     struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit)
commit           3072 revision.c     		return commit->parents;
commit           3074 revision.c     	parents = *saved_parents_at(revs->saved_parents_slab, commit);
commit           3080 revision.c     enum commit_action simplify_commit(struct rev_info *revs, struct commit *commit)
commit           3082 revision.c     	enum commit_action action = get_commit_action(revs, commit);
commit           3094 revision.c     			save_parents(revs, commit);
commit           3095 revision.c     		if (rewrite_parents(revs, commit, rewrite_one) < 0)
commit           3101 revision.c     static void track_linear(struct rev_info *revs, struct commit *commit)
commit           3110 revision.c     			    !hashcmp(p->item->object.sha1, commit->object.sha1))
commit           3116 revision.c     			commit->object.flags |= TRACK_LINEAR;
commit           3119 revision.c     	revs->previous_parents = copy_commit_list(commit->parents);
commit           3122 revision.c     static struct commit *get_revision_1(struct rev_info *revs)
commit           3129 revision.c     		struct commit *commit = entry->item;
commit           3135 revision.c     			save_parents(revs, commit);
commit           3136 revision.c     			fake_reflog_parent(revs->reflog_info, commit);
commit           3137 revision.c     			commit->object.flags &= ~(ADDED | SEEN | SHOWN);
commit           3147 revision.c     			    (commit->date < revs->max_age))
commit           3149 revision.c     			if (add_parents_to_list(revs, commit, &revs->commits, NULL) < 0) {
commit           3152 revision.c     						sha1_to_hex(commit->object.sha1));
commit           3156 revision.c     		switch (simplify_commit(revs, commit)) {
commit           3161 revision.c     			    sha1_to_hex(commit->object.sha1));
commit           3164 revision.c     				track_linear(revs, commit);
commit           3165 revision.c     			return commit;
commit           3193 revision.c     	struct commit *c;
commit           3213 revision.c     		c = (struct commit *)(objects[i].item);
commit           3231 revision.c     static struct commit *get_revision_internal(struct rev_info *revs)
commit           3233 revision.c     	struct commit *c = NULL;
commit           3317 revision.c     struct commit *get_revision(struct rev_info *revs)
commit           3319 revision.c     	struct commit *c;
commit           3351 revision.c     char *get_revision_mark(const struct rev_info *revs, const struct commit *commit)
commit           3353 revision.c     	if (commit->object.flags & BOUNDARY)
commit           3355 revision.c     	else if (commit->object.flags & UNINTERESTING)
commit           3357 revision.c     	else if (commit->object.flags & PATCHSAME)
commit           3360 revision.c     		if (commit->object.flags & SYMMETRIC_LEFT)
commit           3371 revision.c     void put_revision_mark(const struct rev_info *revs, const struct commit *commit)
commit           3373 revision.c     	char *mark = get_revision_mark(revs, commit);
commit            185 revision.h     	int (*include_check)(struct commit *, void *);
commit            250 revision.h     extern struct commit *get_revision(struct rev_info *revs);
commit            252 revision.h     			       const struct commit *commit);
commit            254 revision.h     			      const struct commit *commit);
commit            256 revision.h     extern void mark_parents_uninteresting(struct commit *commit);
commit            287 revision.h     					    struct commit *commit);
commit            289 revision.h     					  struct commit *commit);
commit            297 revision.h     typedef enum rewrite_result (*rewrite_parent_fn_t)(struct rev_info *revs, struct commit **pp);
commit            299 revision.h     extern int rewrite_parents(struct rev_info *revs, struct commit *commit,
commit            311 revision.h     extern struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit);
commit            132 sequencer.c    static int get_message(struct commit *commit, struct commit_message *out)
commit            141 sequencer.c    	out->message = logmsg_reencode(commit, NULL, git_commit_encoding);
commit            142 sequencer.c    	abbrev = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV);
commit            160 sequencer.c    static void free_message(struct commit *commit, struct commit_message *msg)
commit            163 sequencer.c    	unuse_commit_buffer(commit, msg->message);
commit            275 sequencer.c    static int do_recursive_merge(struct commit *base, struct commit *next,
commit            324 sequencer.c    	struct commit *head_commit;
commit            394 sequencer.c    static int is_original_commit_empty(struct commit *commit)
commit            398 sequencer.c    	if (parse_commit(commit))
commit            400 sequencer.c    			     sha1_to_hex(commit->object.sha1));
commit            401 sequencer.c    	if (commit->parents) {
commit            402 sequencer.c    		struct commit *parent = commit->parents->item;
commit            411 sequencer.c    	return !hashcmp(ptree_sha1, commit->tree->object.sha1);
commit            417 sequencer.c    static int allow_empty(struct replay_opts *opts, struct commit *commit)
commit            443 sequencer.c    	empty_commit = is_original_commit_empty(commit);
commit            452 sequencer.c    static int do_pick_commit(struct commit *commit, struct replay_opts *opts)
commit            455 sequencer.c    	struct commit *base, *next, *parent;
commit            479 sequencer.c    	if (!commit->parents) {
commit            482 sequencer.c    	else if (commit->parents->next) {
commit            489 sequencer.c    				sha1_to_hex(commit->object.sha1));
commit            491 sequencer.c    		for (cnt = 1, p = commit->parents;
commit            497 sequencer.c    				sha1_to_hex(commit->object.sha1), opts->mainline);
commit            501 sequencer.c    			sha1_to_hex(commit->object.sha1));
commit            503 sequencer.c    		parent = commit->parents->item;
commit            508 sequencer.c    		return fast_forward_to(commit->object.sha1, head, unborn, opts);
commit            516 sequencer.c    	if (get_message(commit, &msg) != 0)
commit            518 sequencer.c    			sha1_to_hex(commit->object.sha1));
commit            528 sequencer.c    		base = commit;
commit            535 sequencer.c    		strbuf_addstr(&msgbuf, sha1_to_hex(commit->object.sha1));
commit            537 sequencer.c    		if (commit->parents && commit->parents->next) {
commit            547 sequencer.c    		next = commit;
commit            565 sequencer.c    			strbuf_addstr(&msgbuf, sha1_to_hex(commit->object.sha1));
commit            595 sequencer.c    		update_ref(NULL, "CHERRY_PICK_HEAD", commit->object.sha1, NULL,
commit            598 sequencer.c    		update_ref(NULL, "REVERT_HEAD", commit->object.sha1, NULL,
commit            605 sequencer.c    		      find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV),
commit            612 sequencer.c    	allow = allow_empty(opts, commit);
commit            621 sequencer.c    	free_message(commit, &msg);
commit            676 sequencer.c    static struct commit *parse_insn_line(char *bol, char *eol, struct replay_opts *opts)
commit            725 sequencer.c    	struct commit *commit;
commit            731 sequencer.c    		commit = parse_insn_line(p, eol, opts);
commit            732 sequencer.c    		if (!commit)
commit            734 sequencer.c    		next = commit_list_append(commit, next);
commit            810 sequencer.c    	struct commit *commit;
commit            816 sequencer.c    	while ((commit = get_revision(opts->revs)))
commit            817 sequencer.c    		next = commit_list_append(commit, next);
commit           1022 sequencer.c    static int single_pick(struct commit *cmit, struct replay_opts *opts)
commit           1081 sequencer.c    		struct commit *cmit;
commit           3252 sha1_file.c    	struct commit c;
commit            600 sha1_name.c    	struct commit *commit;
commit            605 sha1_name.c    	commit = lookup_commit_reference(sha1);
commit            606 sha1_name.c    	if (parse_commit(commit))
commit            609 sha1_name.c    		hashcpy(result, commit->object.sha1);
commit            612 sha1_name.c    	p = commit->parents;
commit            627 sha1_name.c    	struct commit *commit;
commit            633 sha1_name.c    	commit = lookup_commit_reference(sha1);
commit            634 sha1_name.c    	if (!commit)
commit            638 sha1_name.c    		if (parse_commit(commit) || !commit->parents)
commit            640 sha1_name.c    		commit = commit->parents->item;
commit            642 sha1_name.c    	hashcpy(result, commit->object.sha1);
commit            659 sha1_name.c    			o = &(((struct commit *) o)->tree->object);
commit            759 sha1_name.c    		commit_list_insert((struct commit *)o, &list);
commit            862 sha1_name.c    	commit_list_insert((struct commit *)object, list);
commit            888 sha1_name.c    		struct commit *commit;
commit            891 sha1_name.c    		commit = pop_most_recent_commit(&list, ONELINE_SEEN);
commit            892 sha1_name.c    		if (!parse_object(commit->object.sha1))
commit            894 sha1_name.c    		buf = get_commit_buffer(commit, NULL);
commit            897 sha1_name.c    		unuse_commit_buffer(commit, buf);
commit            900 sha1_name.c    			hashcpy(sha1, commit->object.sha1);
commit            981 sha1_name.c    	struct commit *one, *two;
commit             33 shallow.c      	struct commit *commit = lookup_commit(sha1);
commit             37 shallow.c      	if (commit && commit->object.parsed)
commit             38 shallow.c      		commit->parents = NULL;
commit             82 shallow.c      	struct commit *commit = NULL;
commit             85 shallow.c      	while (commit || i < heads->nr || stack.nr) {
commit             87 shallow.c      		if (!commit) {
commit             89 shallow.c      				commit = (struct commit *)
commit             91 shallow.c      				if (!commit || commit->object.type != OBJ_COMMIT) {
commit             92 shallow.c      					commit = NULL;
commit             95 shallow.c      				if (!commit->util)
commit             96 shallow.c      					commit->util = xmalloc(sizeof(int));
commit             97 shallow.c      				*(int *)commit->util = 0;
commit            100 shallow.c      				commit = (struct commit *)
commit            102 shallow.c      				cur_depth = *(int *)commit->util;
commit            105 shallow.c      		parse_commit_or_die(commit);
commit            108 shallow.c      		    (is_repository_shallow() && !commit->parents &&
commit            109 shallow.c      		     (graft = lookup_commit_graft(commit->object.sha1)) != NULL &&
commit            111 shallow.c      			commit_list_insert(commit, &result);
commit            112 shallow.c      			commit->object.flags |= shallow_flag;
commit            113 shallow.c      			commit = NULL;
commit            116 shallow.c      		commit->object.flags |= not_shallow_flag;
commit            117 shallow.c      		for (p = commit->parents, commit = NULL; p; p = p->next) {
commit            132 shallow.c      				commit = p->item;
commit            133 shallow.c      				cur_depth = *(int *)commit->util;
commit            167 shallow.c      		struct commit *c = lookup_commit(graft->oid.hash);
commit            396 shallow.c      	struct commit *c = lookup_commit_reference_gently(sha1, 1);
commit            404 shallow.c      		struct commit *c = head->item;
commit            460 shallow.c      	struct commit *commit = lookup_commit_reference_gently(oid->hash, 1);
commit            461 shallow.c      	if (!commit)
commit            463 shallow.c      	commit->object.flags |= UNINTERESTING;
commit            464 shallow.c      	mark_parents_uninteresting(commit);
commit            528 shallow.c      		struct commit *c = lookup_commit(sha1[shallow[i]]);
commit            539 shallow.c      			const struct commit *c = lookup_commit(sha1[shallow[i]]);
commit            561 shallow.c      	struct commit **commits;
commit            594 shallow.c      	struct commit *c;
commit            651 shallow.c      		struct commit *commit = lookup_commit(si->shallow->sha1[c]);
commit            663 shallow.c      		si->reachable[c] = in_merge_bases_many(commit,
commit             24 shortlog.h     void shortlog_add_commit(struct shortlog *log, struct commit *commit);
commit            228 submodule.c    		struct commit *left, struct commit *right,
commit            261 submodule.c    	struct commit *commit;
commit            263 submodule.c    	while ((commit = get_revision(rev))) {
commit            269 submodule.c    		if (commit->object.flags & SYMMETRIC_LEFT) {
commit            275 submodule.c    		format_commit_message(commit, format, &sb, &ctx);
commit            291 submodule.c    	struct commit *left = NULL, *right = NULL;
commit            401 submodule.c    static void find_unpushed_submodule_commits(struct commit *commit,
commit            410 submodule.c    	diff_tree_combined_merge(commit, 1, &rev);
commit            417 submodule.c    	struct commit *commit;
commit            433 submodule.c    	while ((commit = get_revision(&rev)) != NULL)
commit            434 submodule.c    		find_unpushed_submodule_commits(commit, needs_pushing);
commit            567 submodule.c    	struct commit *commit;
commit            589 submodule.c    	while ((commit = get_revision(&rev))) {
commit            590 submodule.c    		struct commit_list *parent = commit->parents;
commit            598 submodule.c    			diff_tree_sha1(parent->item->object.sha1, commit->object.sha1, "", &diff_opts);
commit            858 submodule.c    		struct commit *a, struct commit *b)
commit            862 submodule.c    	struct commit *commit;
commit            884 submodule.c    	while ((commit = get_revision(&revs)) != NULL) {
commit            885 submodule.c    		struct object *o = &(commit->object);
commit            886 submodule.c    		if (in_merge_bases(b, commit))
commit            896 submodule.c    		struct commit *m1 = (struct commit *) merges.objects[i].item;
commit            900 submodule.c    			struct commit *m2 = (struct commit *) merges.objects[j].item;
commit            915 submodule.c    static void print_commit(struct commit *commit)
commit            920 submodule.c    	format_commit_message(commit, " %h: %m %s", &sb, &ctx);
commit            932 submodule.c    	struct commit *commit_base, *commit_a, *commit_b;
commit           1000 submodule.c    		print_commit((struct commit *) merges.objects[0].item);
commit           1013 submodule.c    			print_commit((struct commit *) merges.objects[i].item);
commit             16 test-revision-walking.c static void print_commit(struct commit *commit)
commit             21 test-revision-walking.c 	format_commit_message(commit, " %m %s", &sb, &ctx);
commit             29 test-revision-walking.c 	struct commit *commit;
commit             39 test-revision-walking.c 	while ((commit = get_revision(&rev)) != NULL) {
commit             40 test-revision-walking.c 		print_commit(commit);
commit             45 test-submodule-config.c 		const char *commit;
commit             48 test-submodule-config.c 		commit = arg[0];
commit             51 test-submodule-config.c 		if (commit[0] == '\0')
commit             53 test-submodule-config.c 		else if (get_sha1(commit, commit_sha1) < 0)
commit             92 tree.c         			struct commit *commit;
commit             94 tree.c         			commit = lookup_commit(entry.sha1);
commit             95 tree.c         			if (!commit)
commit            100 tree.c         			if (parse_commit(commit))
commit            105 tree.c         			hashcpy(sha1, commit->tree->object.sha1);
commit            245 tree.c         			obj = &(((struct commit *) obj)->tree->object);
commit            294 upload-pack.c  		struct commit *commit = (struct commit *)o;
commit            299 upload-pack.c  		if (!oldest_have || (commit->date < oldest_have))
commit            300 upload-pack.c  			oldest_have = commit->date;
commit            301 upload-pack.c  		for (parents = commit->parents;
commit            313 upload-pack.c  static int reachable(struct commit *want)
commit            320 upload-pack.c  		struct commit *commit = work->item;
commit            324 upload-pack.c  		if (commit->object.flags & THEY_HAVE) {
commit            328 upload-pack.c  		if (!commit->object.parsed)
commit            329 upload-pack.c  			parse_object(commit->object.sha1);
commit            330 upload-pack.c  		if (commit->object.flags & REACHABLE)
commit            332 upload-pack.c  		commit->object.flags |= REACHABLE;
commit            333 upload-pack.c  		if (commit->date < oldest_have)
commit            335 upload-pack.c  		for (list = commit->parents; list; list = list->next) {
commit            336 upload-pack.c  			struct commit *parent = list->item;
commit            369 upload-pack.c  		if (!reachable((struct commit *)want))
commit            668 upload-pack.c  				parse_commit_or_die((struct commit *)object);
commit            669 upload-pack.c  				parents = ((struct commit *)object)->parents;
commit             70 walker.c       static int process_commit(struct walker *walker, struct commit *commit)
commit             72 walker.c       	if (parse_commit(commit))
commit             75 walker.c       	while (complete && complete->item->date >= commit->date) {
commit             79 walker.c       	if (commit->object.flags & COMPLETE)
commit             82 walker.c       	hashcpy(current_commit_sha1, commit->object.sha1);
commit             84 walker.c       	walker_say(walker, "walk %s\n", sha1_to_hex(commit->object.sha1));
commit             87 walker.c       		if (process(walker, &commit->tree->object))
commit             93 walker.c       		struct commit_list *parents = commit->parents;
commit            115 walker.c       		if (process_commit(walker, (struct commit *)obj))
commit            206 walker.c       	struct commit *commit = lookup_commit_reference_gently(oid->hash, 1);
commit            208 walker.c       	if (commit) {
commit            209 walker.c       		commit->object.flags |= COMPLETE;
commit            210 walker.c       		commit_list_insert(commit, &complete);
commit           1335 wt-status.c    	struct commit *commit;
commit           1349 wt-status.c    	     ((commit = lookup_commit_reference_gently(sha1, 1)) != NULL &&
commit           1350 wt-status.c    	      !hashcmp(cb.nsha1, commit->object.sha1)))) {