object 22 alloc.c struct object object; object 55 alloc.c b->object.type = OBJ_BLOB; object 63 alloc.c t->object.type = OBJ_TREE; object 71 alloc.c t->object.type = OBJ_TAG; object 78 alloc.c struct object *obj = alloc_node(&object_state, sizeof(union any_object)); object 94 alloc.c c->object.type = OBJ_COMMIT; object 114 alloc.c REPORT(object, union any_object); object 243 archive.c err = write_entry(args, args->tree->object.sha1, args->base, object 376 archive.c commit_sha1 = commit->object.sha1; object 392 archive.c err = get_tree_entry(tree->object.sha1, prefix, object 44 bisect.c if (commit->object.flags & (UNINTERESTING | COUNTED)) object 46 bisect.c if (!(commit->object.flags & TREESAME)) object 48 bisect.c commit->object.flags |= COUNTED; object 67 bisect.c commit->object.flags &= ~COUNTED; object 90 bisect.c if (p->item->object.flags & UNINTERESTING) object 102 bisect.c if (p->item->object.flags & TREESAME) object 131 bisect.c unsigned flags = commit->object.flags; object 134 bisect.c char *buf = read_sha1_file(commit->object.sha1, &type, &size); object 146 bisect.c fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.sha1)); object 149 bisect.c sha1_to_hex(pp->item->object.sha1)); object 167 bisect.c unsigned flags = p->item->object.flags; object 196 bisect.c return hashcmp(a->commit->object.sha1, b->commit->object.sha1); object 207 bisect.c unsigned flags = p->item->object.flags; object 221 bisect.c struct object *obj = &(array[i].commit->object); object 259 bisect.c unsigned flags = commit->object.flags; object 301 bisect.c if (p->item->object.flags & UNINTERESTING) object 319 bisect.c unsigned flags = p->item->object.flags; object 324 bisect.c if (q->item->object.flags & UNINTERESTING) object 377 bisect.c unsigned flags = p->item->object.flags; object 503 bisect.c list->item->object.sha1)) { object 578 bisect.c if (hashcmp(cur->item->object.sha1, current_bad_oid->hash)) object 782 bisect.c const unsigned char *mb = result->item->object.sha1; object 971 bisect.c bisect_rev = revs.commits->item->object.sha1; object 8 blob.c struct object *obj = lookup_object(sha1); object 16 blob.c item->object.parsed = 1; object 9 blob.h struct object object; object 269 branch.c hashcpy(sha1, commit->object.sha1); object 1440 builtin/am.c die(_("unable to parse commit %s"), sha1_to_hex(commit->object.sha1)); object 1466 builtin/am.c add_pending_object(&rev_info, &commit->object, ""); object 1496 builtin/am.c add_pending_object(&rev_info, &tree->object, ""); object 508 builtin/blame.c if (get_tree_entry(origin->commit->object.sha1, object 559 builtin/blame.c if (is_null_sha1(origin->commit->object.sha1)) object 560 builtin/blame.c do_diff_cache(parent->tree->object.sha1, &diff_opts); object 562 builtin/blame.c diff_tree_sha1(parent->tree->object.sha1, object 563 builtin/blame.c origin->commit->tree->object.sha1, object 629 builtin/blame.c if (is_null_sha1(origin->commit->object.sha1)) object 630 builtin/blame.c do_diff_cache(parent->tree->object.sha1, &diff_opts); object 632 builtin/blame.c diff_tree_sha1(parent->tree->object.sha1, object 633 builtin/blame.c origin->commit->tree->object.sha1, object 979 builtin/blame.c sha1_to_hex(parent->commit->object.sha1), object 980 builtin/blame.c sha1_to_hex(target->commit->object.sha1)); object 1128 builtin/blame.c sha1_to_hex(parent->commit->object.sha1)); object 1277 builtin/blame.c if (is_null_sha1(target->commit->object.sha1)) object 1278 builtin/blame.c do_diff_cache(parent->tree->object.sha1, &diff_opts); object 1280 builtin/blame.c diff_tree_sha1(parent->tree->object.sha1, object 1281 builtin/blame.c target->commit->tree->object.sha1, object 1383 builtin/blame.c return lookup_decoration(&revs->children, &commit->object); object 1692 builtin/blame.c strbuf_addf(&ret->summary, "(%s)", sha1_to_hex(commit->object.sha1)); object 1717 builtin/blame.c if (!repeat && (suspect->commit->object.flags & METAINFO_SHOWN)) object 1720 builtin/blame.c suspect->commit->object.flags |= METAINFO_SHOWN; object 1731 builtin/blame.c if (suspect->commit->object.flags & UNINTERESTING) object 1735 builtin/blame.c printf("previous %s ", sha1_to_hex(prev->commit->object.sha1)); object 1754 builtin/blame.c sha1_to_hex(suspect->commit->object.sha1), object 1793 builtin/blame.c (!(commit->object.flags & UNINTERESTING) && object 1797 builtin/blame.c commit->object.flags |= UNINTERESTING; object 1798 builtin/blame.c if (commit->object.parsed) object 1803 builtin/blame.c commit->object.flags |= UNINTERESTING; object 1871 builtin/blame.c (suspect->commit->object.flags & MORE_THAN_ONE_PATH)) object 1884 builtin/blame.c strcpy(hex, sha1_to_hex(suspect->commit->object.sha1)); object 1924 builtin/blame.c strcpy(hex, sha1_to_hex(suspect->commit->object.sha1)); object 1931 builtin/blame.c if (suspect->commit->object.flags & UNINTERESTING) { object 2002 builtin/blame.c if (commit->object.flags & MORE_THAN_ONE_PATH) object 2006 builtin/blame.c commit->object.flags |= MORE_THAN_ONE_PATH; object 2079 builtin/blame.c const char *uniq = find_unique_abbrev(suspect->commit->object.sha1, object 2111 builtin/blame.c if (!(suspect->commit->object.flags & METAINFO_SHOWN)) { object 2113 builtin/blame.c suspect->commit->object.flags |= METAINFO_SHOWN; object 2155 builtin/blame.c sha1_to_hex(ent->suspect->commit->object.sha1), object 2218 builtin/blame.c const unsigned char *commit_sha1 = parents->item->object.sha1; object 2295 builtin/blame.c commit->object.parsed = 1; object 2312 builtin/blame.c sha1_to_hex(parent->item->object.sha1)); object 2415 builtin/blame.c struct object *obj = revs->pending.objects[i].item; object 2443 builtin/blame.c struct object *obj = revs->pending.objects[i].item; object 2711 builtin/blame.c add_pending_object(&revs, &(sb.final->object), ":"); object 2724 builtin/blame.c if (is_null_sha1(sb.final->object.sha1)) { object 379 builtin/branch.c (struct object *)commit, refname); object 501 builtin/branch.c find_unique_abbrev(item->commit->object.sha1, abbrev), object 646 builtin/branch.c filter->object.flags |= UNINTERESTING; object 648 builtin/branch.c (struct object *) filter, ""); object 657 builtin/branch.c int is_merged = !!(commit->object.flags & UNINTERESTING); object 58 builtin/checkout.c sha1_to_hex(old ? old->object.sha1 : null_sha1), object 59 builtin/checkout.c sha1_to_hex(new ? new->object.sha1 : null_sha1), object 384 builtin/checkout.c static void show_local_changes(struct object *head, object 403 builtin/checkout.c find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf); object 512 builtin/checkout.c old->commit->object.sha1 : object 515 builtin/checkout.c tree = parse_tree_indirect(new->commit->object.sha1); object 589 builtin/checkout.c show_local_changes(&new->commit->object, &opts->diff_options); object 643 builtin/checkout.c old_desc = sha1_to_hex(old->commit->object.sha1); object 655 builtin/checkout.c update_ref(msg.buf, "HEAD", new->commit->object.sha1, NULL, object 706 builtin/checkout.c find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV)); object 764 builtin/checkout.c find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV)); object 775 builtin/checkout.c struct object *object = &old->object; object 781 builtin/checkout.c object->flags &= ~UNINTERESTING; object 782 builtin/checkout.c add_pending_object(&revs, object, sha1_to_hex(object->sha1)); object 785 builtin/checkout.c add_pending_sha1(&revs, "HEAD", new->object.sha1, UNINTERESTING); object 792 builtin/checkout.c if (!(old->object.flags & UNINTERESTING)) object 660 builtin/clone.c update_ref(msg, "HEAD", c->object.sha1, object 19 builtin/commit-tree.c unsigned char *sha1 = parent->object.sha1; object 302 builtin/commit.c tree = parse_tree_indirect(current_head->object.sha1); object 1769 builtin/commit.c ? current_head->object.sha1 : null_sha1, object 1796 builtin/commit.c copy_note_for_rewrite(cfg, current_head->object.sha1, sha1); object 1799 builtin/commit.c run_rewrite_hook(current_head->object.sha1, sha1); object 188 builtin/describe.c if (c->object.flags & best->flag_within) { object 192 builtin/describe.c if (!(i->object.flags & best->flag_within)) object 203 builtin/describe.c if (!(p->object.flags & SEEN)) object 205 builtin/describe.c p->object.flags |= c->object.flags; object 255 builtin/describe.c n = find_commit_name(cmit->object.sha1); object 270 builtin/describe.c die(_("no tag exactly matches '%s'"), sha1_to_hex(cmit->object.sha1)); object 287 builtin/describe.c cmit->object.flags = SEEN; object 303 builtin/describe.c c->object.flags |= t->flag_within; object 314 builtin/describe.c if (!(c->object.flags & t->flag_within)) object 320 builtin/describe.c sha1_to_hex(c->object.sha1)); object 326 builtin/describe.c if (!(p->object.flags & SEEN)) object 328 builtin/describe.c p->object.flags |= c->object.flags; object 337 builtin/describe.c const unsigned char *sha1 = cmit->object.sha1; object 377 builtin/describe.c sha1_to_hex(gave_up_on->object.sha1)); object 383 builtin/describe.c show_suffix(all_matches[0].depth, cmit->object.sha1); object 52 builtin/diff-tree.c printf("%s %s\n", sha1_to_hex(tree1->object.sha1), object 53 builtin/diff-tree.c sha1_to_hex(tree2->object.sha1)); object 54 builtin/diff-tree.c diff_tree_sha1(tree1->object.sha1, tree2->object.sha1, object 64 builtin/diff-tree.c struct object *obj; object 104 builtin/diff-tree.c struct object *tree1, *tree2; object 148 builtin/diff-tree.c struct object *tmp = tree2; object 385 builtin/diff.c add_pending_object(&rev, &tree->object, "HEAD"); object 394 builtin/diff.c struct object *obj = entry->item; object 403 builtin/diff.c obj = &((struct commit *)obj)->tree->object; object 81 builtin/fast-export.c if (!(parent->item->object.flags & SHOWN) && object 82 builtin/fast-export.c !(parent->item->object.flags & UNINTERESTING)) object 168 builtin/fast-export.c static inline void mark_object(struct object *object, uint32_t mark) object 170 builtin/fast-export.c add_decoration(&idnums, object, mark_to_ptr(mark)); object 173 builtin/fast-export.c static inline void mark_next_object(struct object *object) object 175 builtin/fast-export.c mark_object(object, ++last_idnum); object 178 builtin/fast-export.c static int get_object_mark(struct object *object) object 180 builtin/fast-export.c void *decoration = lookup_decoration(&idnums, object); object 220 builtin/fast-export.c struct object *object; object 229 builtin/fast-export.c object = lookup_object(sha1); object 230 builtin/fast-export.c if (object && object->flags & SHOWN) object 235 builtin/fast-export.c object = (struct object *)lookup_blob(sha1); object 243 builtin/fast-export.c object = parse_object_buffer(sha1, type, size, buf, &eaten); object 246 builtin/fast-export.c if (!object) object 249 builtin/fast-export.c mark_next_object(object); object 258 builtin/fast-export.c object->flags |= SHOWN; object 389 builtin/fast-export.c struct object *object = lookup_object(spec->sha1); object 391 builtin/fast-export.c get_object_mark(object)); object 547 builtin/fast-export.c sha1_to_hex(commit->object.sha1)); object 553 builtin/fast-export.c sha1_to_hex(commit->object.sha1)); object 562 builtin/fast-export.c get_object_mark(&commit->parents->item->object) != 0 && object 565 builtin/fast-export.c diff_tree_sha1(commit->parents->item->tree->object.sha1, object 566 builtin/fast-export.c commit->tree->object.sha1, "", &rev->diffopt); object 569 builtin/fast-export.c diff_root_tree_sha1(commit->tree->object.sha1, object 584 builtin/fast-export.c mark_next_object(&commit->object); object 603 builtin/fast-export.c int mark = get_object_mark(&p->item->object); object 650 builtin/fast-export.c struct object *tagged; object 664 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 668 builtin/fast-export.c buf = read_sha1_file(tag->object.sha1, &type, &size); object 670 builtin/fast-export.c die ("Could not read tag %s", sha1_to_hex(tag->object.sha1)); object 709 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 712 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 718 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 734 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 741 builtin/fast-export.c sha1_to_hex(tag->object.sha1), object 748 builtin/fast-export.c if (p->object.flags & UNINTERESTING) object 750 builtin/fast-export.c if (!(p->object.flags & TREESAME)) object 754 builtin/fast-export.c sha1_to_hex(tag->object.sha1)); object 757 builtin/fast-export.c tagged_mark = get_object_mark(&p->object); object 779 builtin/fast-export.c while (tag && tag->object.type == OBJ_TAG) { object 780 builtin/fast-export.c parse_object(tag->object.sha1); object 827 builtin/fast-export.c switch(commit->object.type) { object 831 builtin/fast-export.c export_blob(commit->object.sha1); object 835 builtin/fast-export.c typename(commit->object.type)); object 843 builtin/fast-export.c if (commit->util || commit->object.flags & SHOWN) object 857 builtin/fast-export.c struct object *object = extra_refs.items[i].util; object 858 builtin/fast-export.c switch (object->type) { object 860 builtin/fast-export.c handle_tag(name, (struct tag *)object); object 866 builtin/fast-export.c commit = (struct commit *)object; object 868 builtin/fast-export.c get_object_mark(&commit->object)); object 916 builtin/fast-export.c struct object *object; object 945 builtin/fast-export.c object = &commit->object; object 947 builtin/fast-export.c if (object->flags & SHOWN) object 950 builtin/fast-export.c mark_object(object, mark); object 952 builtin/fast-export.c object->flags |= SHOWN; object 1053 builtin/fast-export.c add_object_array(&commit->object, NULL, &commits); object 533 builtin/fetch.c strcpy(quickref, find_unique_abbrev(current->object.sha1, DEFAULT_ABBREV)); object 549 builtin/fetch.c strcpy(quickref, find_unique_abbrev(current->object.sha1, DEFAULT_ABBREV)); object 339 builtin/fmt-merge-msg.c struct object *branch; object 354 builtin/fmt-merge-msg.c add_pending_object(rev, &head->object, "^HEAD"); object 355 builtin/fmt-merge-msg.c head->object.flags |= UNINTERESTING; object 381 builtin/fmt-merge-msg.c sha1_to_hex(commit->object.sha1)); object 551 builtin/fmt-merge-msg.c struct object *obj; object 571 builtin/fmt-merge-msg.c add_merge_parent(result, obj->sha1, parent->object.sha1); object 581 builtin/fmt-merge-msg.c parents->item->object.sha1)) object 74 builtin/fsck.c static void objreport(struct object *obj, const char *msg_type, object 81 builtin/fsck.c static int objerror(struct object *obj, const char *err) object 88 builtin/fsck.c static int fsck_error_func(struct object *obj, int type, const char *message) object 96 builtin/fsck.c static int mark_object(struct object *obj, int type, void *data, struct fsck_options *options) object 98 builtin/fsck.c struct object *parent = data; object 137 builtin/fsck.c static void mark_object_reachable(struct object *obj) object 142 builtin/fsck.c static int traverse_one_object(struct object *obj) object 167 builtin/fsck.c struct object *obj; object 178 builtin/fsck.c static int mark_used(struct object *obj, int type, void *data, struct fsck_options *options) object 189 builtin/fsck.c static void check_reachable_object(struct object *obj) object 210 builtin/fsck.c static void check_unreachable_object(struct object *obj) object 279 builtin/fsck.c static void check_object(struct object *obj) object 303 builtin/fsck.c struct object *obj = get_indexed_object(i); object 310 builtin/fsck.c static int fsck_obj(struct object *obj) object 337 builtin/fsck.c printf("root %s\n", sha1_to_hex(commit->object.sha1)); object 345 builtin/fsck.c printf(" (%s) in %s\n", tag->tag, sha1_to_hex(tag->object.sha1)); object 354 builtin/fsck.c struct object *obj = parse_object(sha1); object 367 builtin/fsck.c struct object *obj; object 477 builtin/fsck.c struct object *obj; object 516 builtin/fsck.c struct object *obj; object 623 builtin/fsck.c struct object *obj = parse_object(it->sha1); object 734 builtin/fsck.c struct object *obj = lookup_object(sha1); object 763 builtin/fsck.c struct object *obj; object 771 builtin/fsck.c obj = &blob->object; object 459 builtin/grep.c struct object *obj, const char *name, const char *path) object 502 builtin/grep.c struct object *real_obj; object 821 builtin/grep.c struct object *object = parse_object_or_die(sha1, arg); object 824 builtin/grep.c add_object_array_with_path(object, arg, &list, oc.mode, oc.path); object 196 builtin/index-pack.c static int mark_link(struct object *obj, int type, void *data, struct fsck_options *options) object 210 builtin/index-pack.c static unsigned check_object(struct object *obj) object 824 builtin/index-pack.c blob->object.flags |= FLAG_CHECKED; object 828 builtin/index-pack.c struct object *obj; object 218 builtin/log.c unsigned int flags = commit->object.flags; object 551 builtin/log.c struct object *o = objects[i].item; object 824 builtin/log.c struct object *o1, *o2; object 997 builtin/log.c diff_tree_sha1(origin->tree->object.sha1, object 998 builtin/log.c head->tree->object.sha1, object 1460 builtin/log.c if (commit->object.flags & BOUNDARY) { object 1554 builtin/log.c gen_message_id(&rev, sha1_to_hex(commit->object.sha1)); object 1598 builtin/log.c commit->object.flags |= flags; object 1599 builtin/log.c add_pending_object(revs, &commit->object, arg); object 1616 builtin/log.c find_unique_abbrev(commit->object.sha1, abbrev)); object 1621 builtin/log.c find_unique_abbrev(commit->object.sha1, abbrev), object 19 builtin/merge-base.c printf("%s\n", sha1_to_hex(result->item->object.sha1)); object 65 builtin/merge-base.c printf("%s\n", sha1_to_hex(result->item->object.sha1)); object 86 builtin/merge-base.c printf("%s\n", sha1_to_hex(result->item->object.sha1)); object 125 builtin/merge-base.c (commit->object.flags & TMP_MARK) || object 131 builtin/merge-base.c commit->object.flags |= TMP_MARK; object 177 builtin/merge-base.c revs.commit[i]->object.flags &= ~TMP_MARK; object 192 builtin/merge-base.c if (&bases->item->object == &revs.commit[i]->object) object 199 builtin/merge-base.c printf("%s\n", sha1_to_hex(bases->item->object.sha1)); object 63 builtin/merge-tree.c return read_sha1_file(entry->blob->object.sha1, &type, size); object 85 builtin/merge-tree.c return read_sha1_file(entry->blob->object.sha1, &type, size); object 133 builtin/merge-tree.c printf(" %-6s %o %s %s\n", desc[entry->stage], entry->mode, sha1_to_hex(entry->blob->object.sha1), entry->path); object 350 builtin/merge.c commit->object.flags |= UNINTERESTING; object 351 builtin/merge.c add_pending_object(&rev, &commit->object, NULL); object 354 builtin/merge.c add_pending_object(&rev, &j->item->object, NULL); object 368 builtin/merge.c sha1_to_hex(commit->object.sha1)); object 383 builtin/merge.c const unsigned char *head = head_commit->object.sha1; object 500 builtin/merge.c sha1_to_hex(remote_head->object.sha1), object 522 builtin/merge.c sha1_to_hex(remote_head->object.sha1), remote); object 895 builtin/merge.c if (hashcmp(second_token->object.sha1, head)) object 966 builtin/merge.c sha1 = c->object.sha1; object 1279 builtin/merge.c read_empty(remote_head->object.sha1, 0); object 1280 builtin/merge.c update_ref("initial pull", "HEAD", remote_head->object.sha1, object 1294 builtin/merge.c is_old_style_invocation(argc, argv, head_commit->object.sha1)) { object 1328 builtin/merge.c strcpy(hex, find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV)); object 1358 builtin/merge.c sha1_to_hex(commit->object.sha1)); object 1398 builtin/merge.c update_ref("updating ORIG_HEAD", "ORIG_HEAD", head_commit->object.sha1, object 1414 builtin/merge.c !hashcmp(common->item->object.sha1, head_commit->object.sha1)) { object 1420 builtin/merge.c strcpy(hex, find_unique_abbrev(head_commit->object.sha1, DEFAULT_ABBREV)); object 1425 builtin/merge.c find_unique_abbrev(remoteheads->item->object.sha1, object 1437 builtin/merge.c if (checkout_fast_forward(head_commit->object.sha1, object 1438 builtin/merge.c commit->object.sha1, object 1444 builtin/merge.c finish(head_commit, remoteheads, commit->object.sha1, msg.buf); object 1463 builtin/merge.c if (!read_tree_trivial(common->item->object.sha1, object 1464 builtin/merge.c head_commit->object.sha1, object 1465 builtin/merge.c remoteheads->item->object.sha1)) { object 1488 builtin/merge.c if (hashcmp(common_one->item->object.sha1, object 1489 builtin/merge.c j->item->object.sha1)) { object 1525 builtin/merge.c restore_state(head_commit->object.sha1, stash); object 1591 builtin/merge.c restore_state(head_commit->object.sha1, stash); object 1604 builtin/merge.c restore_state(head_commit->object.sha1, stash); object 42 builtin/mktag.c const char *object, *type_line, *tag_line, *tagger_line, *lb, *rb; object 51 builtin/mktag.c object = buffer; object 52 builtin/mktag.c if (memcmp(object, "object ", 7)) object 55 builtin/mktag.c if (get_sha1_hex(object + 7, sha1)) object 59 builtin/mktag.c type_line = object + 48; object 143 builtin/name-rev.c struct object *o = parse_object(oid->hash); object 187 builtin/name-rev.c static const char *get_exact_ref_match(const struct object *o) object 208 builtin/name-rev.c static const char *get_rev_name(const struct object *o) object 234 builtin/name-rev.c static void show_name(const struct object *obj, object 280 builtin/name-rev.c struct object *o = object 339 builtin/name-rev.c struct object *object; object 349 builtin/name-rev.c object = parse_object(sha1); object 350 builtin/name-rev.c if (object) { object 351 builtin/name-rev.c struct object *peeled = deref_tag(object, *argv, 0); object 356 builtin/name-rev.c if (!object) { object 373 builtin/name-rev.c object = (struct object *)commit; object 375 builtin/name-rev.c add_object_array(object, *argv, &revs); object 396 builtin/name-rev.c struct object *obj = get_indexed_object(i); object 132 builtin/notes.c static void write_commented_object(int fd, const unsigned char *object) object 135 builtin/notes.c {"show", "--stat", "--no-notes", sha1_to_hex(object), NULL}; object 148 builtin/notes.c sha1_to_hex(object)); object 160 builtin/notes.c sha1_to_hex(object)); object 163 builtin/notes.c static void prepare_note_data(const unsigned char *object, struct note_data *d, object 186 builtin/notes.c write_commented_object(fd, object); object 245 builtin/notes.c unsigned char object[20]; object 252 builtin/notes.c if (get_sha1(arg, object)) object 254 builtin/notes.c if (!(buf = read_sha1_file(object, &type, &len))) { object 347 builtin/notes.c unsigned char object[20]; object 365 builtin/notes.c if (get_sha1(argv[0], object)) object 367 builtin/notes.c note = get_note(t, object); object 373 builtin/notes.c sha1_to_hex(object)); object 388 builtin/notes.c unsigned char object[20], new_note[20]; object 420 builtin/notes.c if (get_sha1(object_ref, object)) object 424 builtin/notes.c note = get_note(t, object); object 434 builtin/notes.c sha1_to_hex(object)); object 447 builtin/notes.c sha1_to_hex(object)); object 450 builtin/notes.c prepare_note_data(object, &d, note); object 453 builtin/notes.c if (add_note(t, object, new_note, combine_notes_overwrite)) object 458 builtin/notes.c sha1_to_hex(object)); object 459 builtin/notes.c remove_note(t, object); object 473 builtin/notes.c unsigned char object[20], from_obj[20]; object 511 builtin/notes.c if (get_sha1(object_ref, object)) object 515 builtin/notes.c note = get_note(t, object); object 522 builtin/notes.c sha1_to_hex(object)); object 526 builtin/notes.c sha1_to_hex(object)); object 536 builtin/notes.c if (add_note(t, object, from_note, combine_notes_overwrite)) object 549 builtin/notes.c unsigned char object[20], new_note[20]; object 589 builtin/notes.c if (get_sha1(object_ref, object)) object 593 builtin/notes.c note = get_note(t, object); object 595 builtin/notes.c prepare_note_data(object, &d, edit ? note : NULL); object 613 builtin/notes.c if (add_note(t, object, new_note, combine_notes_overwrite)) object 619 builtin/notes.c sha1_to_hex(object)); object 620 builtin/notes.c remove_note(t, object); object 635 builtin/notes.c unsigned char object[20]; object 652 builtin/notes.c if (get_sha1(object_ref, object)) object 656 builtin/notes.c note = get_note(t, object); object 660 builtin/notes.c sha1_to_hex(object)); object 710 builtin/notes.c hashcpy(parent_sha1, partial->parents->item->object.sha1); object 2280 builtin/pack-objects.c add_object_entry(commit->object.sha1, OBJ_COMMIT, NULL, 0); object 2281 builtin/pack-objects.c commit->object.flags |= OBJECT_ADDED; object 2287 builtin/pack-objects.c static void show_object(struct object *obj, object 2306 builtin/pack-objects.c add_preferred_base(commit->object.sha1); object 2311 builtin/pack-objects.c struct object *object; object 2320 builtin/pack-objects.c static void mark_in_pack_object(struct object *object, struct packed_git *p, struct in_pack *in_pack) object 2322 builtin/pack-objects.c in_pack->array[in_pack->nr].offset = find_pack_entry_one(object->sha1, p); object 2323 builtin/pack-objects.c in_pack->array[in_pack->nr].object = object; object 2341 builtin/pack-objects.c return hashcmp(a->object->sha1, b->object->sha1); object 2354 builtin/pack-objects.c struct object *o; object 2378 builtin/pack-objects.c struct object *o = in_pack.array[i].object; object 2482 builtin/pack-objects.c static void record_recent_object(struct object *obj, object 2492 builtin/pack-objects.c sha1_array_append(&recent_objects, commit->object.sha1); object 130 builtin/prune.c struct object *object = parse_object_or_die(sha1, name); object 131 builtin/prune.c add_pending_object(&revs, object, ""); object 746 builtin/pull.c hashcpy(merge_base, result->item->object.sha1); object 959 builtin/receive-pack.c struct object *old_object, *new_object; object 68 builtin/reflog.c if (tree->object.flags & SEEN) object 70 builtin/reflog.c if (tree->object.flags & INCOMPLETE) object 78 builtin/reflog.c tree->object.flags |= INCOMPLETE; object 89 builtin/reflog.c tree->object.flags |= INCOMPLETE; object 96 builtin/reflog.c tree->object.flags |= SEEN; object 108 builtin/reflog.c if (commit->object.flags & SEEN) object 110 builtin/reflog.c if (commit->object.flags & INCOMPLETE) object 121 builtin/reflog.c add_object_array(&commit->object, NULL, &study); object 122 builtin/reflog.c add_object_array(&commit->object, NULL, &found); object 123 builtin/reflog.c commit->object.flags |= STUDYING; object 129 builtin/reflog.c if (!c->object.parsed && !parse_object(c->object.sha1)) object 130 builtin/reflog.c c->object.flags |= INCOMPLETE; object 132 builtin/reflog.c if (c->object.flags & INCOMPLETE) { object 136 builtin/reflog.c else if (c->object.flags & SEEN) object 140 builtin/reflog.c if (p->object.flags & STUDYING) object 142 builtin/reflog.c p->object.flags |= STUDYING; object 143 builtin/reflog.c add_object_array(&p->object, NULL, &study); object 144 builtin/reflog.c add_object_array(&p->object, NULL, &found); object 155 builtin/reflog.c if (!tree_is_complete(c->tree->object.sha1)) { object 157 builtin/reflog.c c->object.flags |= INCOMPLETE; object 170 builtin/reflog.c commit->object.flags |= INCOMPLETE; object 227 builtin/reflog.c pending->item->object.flags &= ~REACHABLE; object 236 builtin/reflog.c if (commit->object.flags & REACHABLE) object 240 builtin/reflog.c commit->object.flags |= REACHABLE; object 245 builtin/reflog.c commit->object.flags |= REACHABLE; object 250 builtin/reflog.c if (commit->object.flags & REACHABLE) object 276 builtin/reflog.c if (commit->object.flags & REACHABLE) object 284 builtin/reflog.c return !(commit->object.flags & REACHABLE); object 49 builtin/replace.c struct object_id object; object 52 builtin/replace.c if (get_sha1(refname, object.hash)) object 55 builtin/replace.c obj_type = sha1_object_info(object.hash, NULL); object 130 builtin/replace.c static void check_ref_valid(unsigned char object[20], object 138 builtin/replace.c sha1_to_hex(object)) > ref_size - 1) object 150 builtin/replace.c unsigned char object[20], object 161 builtin/replace.c obj_type = sha1_object_info(object, NULL); object 170 builtin/replace.c check_ref_valid(object, prev, ref, sizeof(ref), force); object 185 builtin/replace.c unsigned char object[20], repl[20]; object 187 builtin/replace.c if (get_sha1(object_ref, object)) object 192 builtin/replace.c return replace_object_sha1(object_ref, object, replace_ref, repl, force); object 99 builtin/reset.c hex = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV); object 309 builtin/reset.c hashcpy(sha1, commit->object.sha1); object 317 builtin/reset.c hashcpy(sha1, tree->object.sha1); object 66 builtin/rev-list.c if (commit->object.flags & PATCHSAME) object 68 builtin/rev-list.c else if (commit->object.flags & SYMMETRIC_LEFT) object 84 builtin/rev-list.c fputs(find_unique_abbrev(commit->object.sha1, revs->abbrev), object 87 builtin/rev-list.c fputs(sha1_to_hex(commit->object.sha1), stdout); object 91 builtin/rev-list.c printf(" %s", sha1_to_hex(parents->item->object.sha1)); object 98 builtin/rev-list.c children = lookup_decoration(&revs->children, &commit->object); object 100 builtin/rev-list.c printf(" %s", sha1_to_hex(children->item->object.sha1)); object 180 builtin/rev-list.c static void finish_object(struct object *obj, object 191 builtin/rev-list.c static void show_object(struct object *obj, object 204 builtin/rev-list.c printf("-%s\n", sha1_to_hex(commit->object.sha1)); object 245 builtin/rev-list.c strcpy(hex, sha1_to_hex(revs->commits->item->object.sha1)); object 286 builtin/rev-parse.c exclude->item->object.sha1,NULL); object 325 builtin/rev-parse.c parents->item->object.sha1, arg); object 132 builtin/shortlog.c sha1_to_hex(commit->object.sha1)); object 49 builtin/show-branch.c if (commit->object.flags & UNINTERESTING) object 199 builtin/show-branch.c if (!commit->object.flags) { object 217 builtin/show-branch.c int flags = commit->object.flags & all_mask; object 229 builtin/show-branch.c int this_flag = p->object.flags; object 236 builtin/show-branch.c p->object.flags |= flags; object 255 builtin/show-branch.c if (((c->object.flags & all_revs) != all_revs) && object 256 builtin/show-branch.c !(c->object.flags & UNINTERESTING)) object 269 builtin/show-branch.c if (!(p->object.flags & UNINTERESTING)) { object 270 builtin/show-branch.c p->object.flags |= UNINTERESTING; object 286 builtin/show-branch.c if (commit->object.parsed) { object 306 builtin/show-branch.c find_unique_abbrev(commit->object.sha1, object 508 builtin/show-branch.c int flags = commit->object.flags & all_mask; object 511 builtin/show-branch.c puts(sha1_to_hex(commit->object.sha1)); object 513 builtin/show-branch.c commit->object.flags |= UNINTERESTING; object 530 builtin/show-branch.c if (commit->object.flags == flag) object 531 builtin/show-branch.c puts(sha1_to_hex(commit->object.sha1)); object 532 builtin/show-branch.c commit->object.flags |= UNINTERESTING; object 602 builtin/show-branch.c flag = commit->object.flags; object 860 builtin/show-branch.c commit->object.flags |= flag; object 861 builtin/show-branch.c if (commit->object.flags == flag) object 866 builtin/show-branch.c rev_mask[i] = rev[i]->object.flags; object 887 builtin/show-branch.c rev[i]->object.sha1); object 931 builtin/show-branch.c int this_flag = commit->object.flags; object 63 builtin/tag.c struct object *obj; object 80 builtin/tag.c if (!hashcmp(want->item->object.sha1, c->object.sha1)) object 99 builtin/tag.c if (candidate->object.flags & TMP_MARK) object 102 builtin/tag.c if (candidate->object.flags & UNINTERESTING) object 106 builtin/tag.c candidate->object.flags |= TMP_MARK; object 155 builtin/tag.c commit->object.flags |= UNINTERESTING; object 164 builtin/tag.c commit->object.flags |= TMP_MARK; object 444 builtin/tag.c static void create_tag(const unsigned char *object, const char *tag, object 453 builtin/tag.c type = sha1_object_info(object, NULL); object 462 builtin/tag.c sha1_to_hex(object), object 577 builtin/tag.c unsigned char object[20], prev[20]; object 710 builtin/tag.c if (get_sha1(object_ref, object)) object 733 builtin/tag.c create_tag(object, tag, &buf, &opt, prev, object); object 737 builtin/tag.c ref_transaction_update(transaction, ref.buf, object, prev, object 743 builtin/tag.c if (force && !is_null_sha1(prev) && hashcmp(prev, object)) object 37 builtin/unpack-objects.c static struct obj_buffer *lookup_object_buffer(struct object *base) object 42 builtin/unpack-objects.c static void add_object_buffer(struct object *object, char *buffer, unsigned long size) object 48 builtin/unpack-objects.c if (add_decoration(&obj_decorate, object, obj)) object 49 builtin/unpack-objects.c die("object %s tried to add buffer twice!", sha1_to_hex(object->sha1)); object 155 builtin/unpack-objects.c struct object *obj; object 168 builtin/unpack-objects.c static void write_cached_object(struct object *obj, struct obj_buffer *obj_buf) object 182 builtin/unpack-objects.c static int check_object(struct object *obj, int type, void *data, struct fsck_options *options) object 251 builtin/unpack-objects.c blob->object.flags |= FLAG_WRITTEN; object 256 builtin/unpack-objects.c struct object *obj; object 323 builtin/unpack-objects.c struct object *obj; object 277 builtin/worktree.c sha1_to_hex(commit->object.sha1), NULL); object 144 bundle.c struct object *o = parse_object(e->sha1); object 167 bundle.c if (commit->object.flags & PREREQ_MARK) object 209 bundle.c static int is_tag_in_date_range(struct object *tag, struct rev_info *revs) object 256 bundle.c struct object *object = revs->pending.objects[i].item; object 257 bundle.c if (object->flags & UNINTERESTING) object 259 bundle.c write_or_die(pack_objects.in, sha1_to_hex(object->sha1), 40); object 292 bundle.c struct object *object = parse_object_or_die(sha1, buf.buf); object 293 bundle.c object->flags |= UNINTERESTING; object 294 bundle.c add_pending_object(revs, object, buf.buf); object 297 bundle.c struct object *object = parse_object_or_die(sha1, buf.buf); object 298 bundle.c object->flags |= SHOWN; object 370 bundle.c struct object *obj; object 372 bundle.c if (e->item == &(one->object)) { object 660 cache-tree.c hashcpy(it->sha1, tree->object.sha1); object 669 cache-tree.c if (!subtree->object.parsed) object 1095 cache.h extern struct object *peel_to_type(const char *name, int namelen, object 1096 cache.h struct object *o, enum object_type); object 1543 combine-diff.c sha1_array_append(&parents, parent->item->object.sha1); object 1546 combine-diff.c diff_tree_combined(commit->object.sha1, &parents, dense, rev); object 24 commit.c struct object *obj = deref_tag(parse_object(sha1), NULL, 0); object 41 commit.c if (hashcmp(sha1, c->object.sha1)) { object 50 commit.c struct object *obj = lookup_object(sha1); object 265 commit.c ret = read_sha1_file(commit->object.sha1, &type, &size); object 268 commit.c sha1_to_hex(commit->object.sha1)); object 271 commit.c sha1_to_hex(commit->object.sha1), typename(type)); object 324 commit.c if (item->object.parsed) object 326 commit.c item->object.parsed = 1; object 330 commit.c return error("bogus commit object %s", sha1_to_hex(item->object.sha1)); object 333 commit.c sha1_to_hex(item->object.sha1)); object 338 commit.c graft = lookup_commit_graft(item->object.sha1); object 345 commit.c return error("bad parents in commit %s", sha1_to_hex(item->object.sha1)); object 381 commit.c if (item->object.parsed) object 383 commit.c buffer = read_sha1_file(item->object.sha1, &type, &size); object 387 commit.c sha1_to_hex(item->object.sha1)); object 391 commit.c sha1_to_hex(item->object.sha1)); object 406 commit.c item ? sha1_to_hex(item->object.sha1) : "(null)"); object 517 commit.c if (!parse_commit(commit) && !(commit->object.flags & mark)) { object 518 commit.c commit->object.flags |= mark; object 532 commit.c if (!(mark & commit->object.flags)) object 535 commit.c commit->object.flags &= ~mark; object 567 commit.c struct object *object; object 572 commit.c object = a->objects[i].item; object 573 commit.c commit = lookup_commit_reference_gently(object->sha1, 1); object 783 commit.c if (!(commit->object.flags & STALE)) object 796 commit.c one->object.flags |= PARENT1; object 804 commit.c twos[i]->object.flags |= PARENT2; object 813 commit.c flags = commit->object.flags & (PARENT1 | PARENT2 | STALE); object 815 commit.c if (!(commit->object.flags & RESULT)) { object 816 commit.c commit->object.flags |= RESULT; object 826 commit.c if ((p->object.flags & flags) == flags) object 830 commit.c p->object.flags |= flags; object 865 commit.c if (!(list->item->object.flags & STALE)) object 931 commit.c if (array[i]->object.flags & PARENT2) object 934 commit.c if (work[j]->object.flags & PARENT1) object 1049 commit.c if (commit->object.flags & PARENT2) object 1077 commit.c p->item->object.flags &= ~STALE; object 1079 commit.c if (p->item->object.flags & STALE) object 1081 commit.c p->item->object.flags |= STALE; object 1086 commit.c if (p->item->object.flags & STALE) { object 1088 commit.c p->item->object.flags &= ~STALE; object 1553 commit.c sha1_to_hex(parent->object.sha1)); object 1589 commit.c struct object *obj; object 1639 commit.c printf(format, sha1_to_hex(list->item->object.sha1)); object 17 commit.h struct object object; object 45 commit.h void add_name_decoration(enum decoration_type type, const char *name, struct object *obj); object 46 commit.h const struct name_decoration *get_name_decoration(const struct object *obj); object 355 commit.h struct object *obj; /* the named object, could be a tag */ object 169 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c char *object = NULL; object 177 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object = keyring_object(c); object 183 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object, object 189 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c g_free(object); object 220 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c char *object = NULL; object 234 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object = keyring_object(c); object 241 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object, object 248 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c g_free(object); object 261 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c char *object = NULL; object 277 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object = keyring_object(c); object 283 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c object, object 289 contrib/credential/gnome-keyring/git-credential-gnome-keyring.c g_free(object); object 97 contrib/examples/builtin-fetch--tool.c strcpy(oldh, find_unique_abbrev(current->object.sha1, DEFAULT_ABBREV)); object 175 contrib/examples/builtin-fetch--tool.c sha1_to_hex(commit ? commit->object.sha1 : sha1), object 9 decorate.c static unsigned int hash_obj(const struct object *obj, unsigned int n) object 14 decorate.c static void *insert_decoration(struct decoration *n, const struct object *base, void *decoration) object 46 decorate.c const struct object *base = old_hash[i].base; object 57 decorate.c void *add_decoration(struct decoration *n, const struct object *obj, object 68 decorate.c void *lookup_decoration(struct decoration *n, const struct object *obj) object 5 decorate.h const struct object *base; object 15 decorate.h extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration); object 16 decorate.h extern void *lookup_decoration(struct decoration *n, const struct object *obj); object 55 fetch-pack.c if (!(commit->object.flags & mark)) { object 56 fetch-pack.c commit->object.flags |= mark; object 63 fetch-pack.c if (!(commit->object.flags & COMMON)) object 70 fetch-pack.c struct object *o = deref_tag(parse_object(sha1), refname, 0); object 87 fetch-pack.c struct object *o = deref_tag(parse_object(oid->hash), refname, 0); object 104 fetch-pack.c if (commit != NULL && !(commit->object.flags & COMMON)) { object 105 fetch-pack.c struct object *o = (struct object *)commit; object 148 fetch-pack.c commit->object.flags |= POPPED; object 149 fetch-pack.c if (!(commit->object.flags & COMMON)) object 152 fetch-pack.c if (commit->object.flags & COMMON) { object 156 fetch-pack.c } else if (commit->object.flags & COMMON_REF) object 164 fetch-pack.c if (!(parents->item->object.flags & SEEN)) object 172 fetch-pack.c return commit->object.sha1; object 285 fetch-pack.c struct object *o; object 418 fetch-pack.c && !(commit->object.flags & COMMON)) { object 483 fetch-pack.c struct object *o = parse_object(sha1); object 494 fetch-pack.c if (!(commit->object.flags & COMPLETE)) { object 495 fetch-pack.c commit->object.flags |= COMPLETE; object 514 fetch-pack.c sha1_to_hex(complete->item->object.sha1)); object 600 fetch-pack.c struct object *o; object 633 fetch-pack.c struct object *o = deref_tag(lookup_object(ref->old_sha1), object 650 fetch-pack.c struct object *o; object 268 fsck.c static int report(struct fsck_options *options, struct object *object, object 278 fsck.c if (options->skiplist && object && object 279 fsck.c sha1_array_lookup(options->skiplist, object->sha1) >= 0) object 291 fsck.c result = options->error_func(object, msg_type, sb.buf); object 314 fsck.c result = options->walk(&lookup_tree(entry.sha1)->object, OBJ_TREE, data, options); object 316 fsck.c result = options->walk(&lookup_blob(entry.sha1)->object, OBJ_BLOB, data, options); object 319 fsck.c sha1_to_hex(tree->object.sha1), entry.path, entry.mode); object 338 fsck.c result = options->walk((struct object *)commit->tree, OBJ_TREE, data, options); object 345 fsck.c result = options->walk((struct object *)parents->item, OBJ_COMMIT, data, options); object 362 fsck.c int fsck_walk(struct object *obj, void *data, struct fsck_options *options) object 508 fsck.c retval += report(options, &item->object, FSCK_MSG_NULL_SHA1, "contains entries pointing to null sha1"); object 510 fsck.c retval += report(options, &item->object, FSCK_MSG_FULL_PATHNAME, "contains full pathnames"); object 512 fsck.c retval += report(options, &item->object, FSCK_MSG_EMPTY_NAME, "contains empty pathname"); object 514 fsck.c retval += report(options, &item->object, FSCK_MSG_HAS_DOT, "contains '.'"); object 516 fsck.c retval += report(options, &item->object, FSCK_MSG_HAS_DOTDOT, "contains '..'"); object 518 fsck.c retval += report(options, &item->object, FSCK_MSG_HAS_DOTGIT, "contains '.git'"); object 520 fsck.c retval += report(options, &item->object, FSCK_MSG_ZERO_PADDED_FILEMODE, "contains zero-padded file modes"); object 522 fsck.c retval += report(options, &item->object, FSCK_MSG_BAD_FILEMODE, "contains bad file modes"); object 524 fsck.c retval += report(options, &item->object, FSCK_MSG_DUPLICATE_ENTRIES, "contains duplicate file entries"); object 526 fsck.c retval += report(options, &item->object, FSCK_MSG_TREE_NOT_SORTED, "not properly sorted"); object 531 fsck.c struct object *obj, struct fsck_options *options) object 561 fsck.c static int fsck_ident(const char **ident, struct object *obj, struct fsck_options *options) object 613 fsck.c if (verify_headers(buffer, size, &commit->object, options)) object 617 fsck.c return report(options, &commit->object, FSCK_MSG_MISSING_TREE, "invalid format - expected 'tree' line"); object 619 fsck.c err = report(options, &commit->object, FSCK_MSG_BAD_TREE_SHA1, "invalid 'tree' line format - bad sha1"); object 626 fsck.c err = report(options, &commit->object, FSCK_MSG_BAD_PARENT_SHA1, "invalid 'parent' line format - bad sha1"); object 633 fsck.c graft = lookup_commit_graft(commit->object.sha1); object 639 fsck.c err = report(options, &commit->object, FSCK_MSG_MISSING_GRAFT, "graft objects missing"); object 645 fsck.c err = report(options, &commit->object, FSCK_MSG_MISSING_PARENT, "parent objects missing"); object 653 fsck.c err = fsck_ident(&buffer, &commit->object, options); object 658 fsck.c err = report(options, &commit->object, FSCK_MSG_MISSING_AUTHOR, "invalid format - expected 'author' line"); object 660 fsck.c err = report(options, &commit->object, FSCK_MSG_MULTIPLE_AUTHORS, "invalid format - multiple 'author' lines"); object 664 fsck.c return report(options, &commit->object, FSCK_MSG_MISSING_COMMITTER, "invalid format - expected 'committer' line"); object 665 fsck.c err = fsck_ident(&buffer, &commit->object, options); object 669 fsck.c return report(options, &commit->object, FSCK_MSG_BAD_TREE, "could not load commit's tree %s", sha1_to_hex(tree_sha1)); object 699 fsck.c read_sha1_file(tag->object.sha1, &type, &size); object 701 fsck.c return report(options, &tag->object, object 706 fsck.c ret = report(options, &tag->object, object 714 fsck.c if (verify_headers(buffer, size, &tag->object, options)) object 718 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_OBJECT, "invalid format - expected 'object' line"); object 722 fsck.c ret = report(options, &tag->object, FSCK_MSG_BAD_OBJECT_SHA1, "invalid 'object' line format - bad sha1"); object 729 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_TYPE_ENTRY, "invalid format - expected 'type' line"); object 734 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_TYPE, "invalid format - unexpected end after 'type' line"); object 738 fsck.c ret = report(options, &tag->object, FSCK_MSG_BAD_TYPE, "invalid 'type' value"); object 744 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_TAG_ENTRY, "invalid format - expected 'tag' line"); object 749 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_TAG, "invalid format - unexpected end after 'type' line"); object 754 fsck.c ret = report(options, &tag->object, FSCK_MSG_BAD_TAG_NAME, object 764 fsck.c ret = report(options, &tag->object, FSCK_MSG_MISSING_TAGGER_ENTRY, "invalid format - expected 'tagger' line"); object 769 fsck.c ret = fsck_ident(&buffer, &tag->object, options); object 780 fsck.c struct object *tagged = tag->tagged; object 783 fsck.c return report(options, &tag->object, FSCK_MSG_BAD_TAG_OBJECT, "could not load tagged object"); object 788 fsck.c int fsck_object(struct object *obj, void *data, unsigned long size, object 809 fsck.c int fsck_error_function(struct object *obj, int msg_type, const char *message) object 23 fsck.h typedef int (*fsck_walk_func)(struct object *obj, int type, void *data, struct fsck_options *options); object 26 fsck.h typedef int (*fsck_error)(struct object *obj, int type, const char *message); object 28 fsck.h int fsck_error_function(struct object *obj, int type, const char *message); object 48 fsck.h int fsck_walk(struct object *obj, void *data, struct fsck_options *options); object 50 fsck.h int fsck_object(struct object *obj, void *data, unsigned long size, object 288 graph.c if (commit->object.flags & CHILD_SHOWN) object 770 graph.c if (graph->commit->object.flags & BOUNDARY) { object 430 http-backend.c struct object *o = parse_object(oid->hash); object 114 http-push.c struct object *obj; object 630 http-push.c static void add_fetch_request(struct object *obj) object 661 http-push.c static int add_send_request(struct object *obj, struct remote_lock *lock) object 722 http-push.c struct object *obj; object 1269 http-push.c static struct object_list **add_one_object(struct object *obj, struct object_list **p) object 1283 http-push.c struct object *obj = &blob->object; object 1299 http-push.c struct object *obj = &tree->object; object 1346 http-push.c commit->object.flags |= LOCAL; object 1347 http-push.c if (!(commit->object.flags & UNINTERESTING)) object 1348 http-push.c count += add_send_request(&commit->object, lock); object 1353 http-push.c struct object *obj = entry->item; object 1424 http-push.c struct object *obj; object 1461 http-push.c struct object *o; object 474 line-log.c struct object *commit = NULL; object 479 line-log.c struct object *obj = revs->pending.objects[i].item; object 505 line-log.c if (get_tree_entry(commit->object.sha1, spec->path, object 704 line-log.c old = lookup_decoration(&revs->line_log_data, &commit->object); object 712 line-log.c add_decoration(&revs->line_log_data, &commit->object, new); object 718 line-log.c r = lookup_decoration(&revs->line_log_data, &commit->object); object 722 line-log.c add_decoration(&revs->line_log_data, &commit->object, NULL); object 731 line-log.c ret = lookup_decoration(&revs->line_log_data, &commit->object); object 827 line-log.c diff_tree_sha1(parent ? parent->tree->object.sha1 : NULL, object 828 line-log.c commit->tree->object.sha1, "", opt); object 1211 line-log.c commit->object.flags |= TREESAME; object 1222 line-log.c if (p->object.flags & UNINTERESTING) object 1224 line-log.c if (!(p->object.flags & TREESAME)) object 18 list-objects.c struct object *obj = &blob->object; object 70 list-objects.c struct object *obj = &tree->object; object 140 list-objects.c if (!(parent->object.flags & UNINTERESTING)) object 143 list-objects.c if (revs->edge_hint && !(parent->object.flags & SHOWN)) { object 144 list-objects.c parent->object.flags |= SHOWN; object 158 list-objects.c if (commit->object.flags & UNINTERESTING) { object 160 list-objects.c if (revs->edge_hint_aggressive && !(commit->object.flags & SHOWN)) { object 161 list-objects.c commit->object.flags |= SHOWN; object 170 list-objects.c struct object *obj = revs->cmdline.rev[i].item; object 185 list-objects.c add_pending_object(revs, &tree->object, ""); object 209 list-objects.c struct object *obj = pending->item; object 5 list-objects.h typedef void (*show_object_fn)(struct object *, const struct name_path *, const char *, void *); object 78 log-tree.c void add_name_decoration(enum decoration_type type, const char *name, struct object *obj) object 87 log-tree.c const struct name_decoration *get_name_decoration(const struct object *obj) object 95 log-tree.c struct object *obj; object 147 log-tree.c add_name_decoration(DECORATION_GRAFTED, "grafted", &commit->object); object 168 log-tree.c printf(" %s", find_unique_abbrev(parent->object.sha1, abbrev)); object 174 log-tree.c struct commit_list *p = lookup_decoration(&opt->children, &commit->object); object 176 log-tree.c printf(" %s", find_unique_abbrev(p->item->object.sha1, abbrev)); object 244 log-tree.c decoration = get_name_decoration(&commit->object); object 345 log-tree.c const char *name = sha1_to_hex(commit->object.sha1); object 472 log-tree.c if (!hashcmp(parent->item->object.sha1, sha1)) object 507 log-tree.c commit->parents->next->item->object.sha1)) object 556 log-tree.c fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit), stdout); object 616 log-tree.c fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit), object 624 log-tree.c find_unique_abbrev(parent->object.sha1, object 663 log-tree.c format_display_notes(commit->object.sha1, ¬ebuf, object 805 log-tree.c sha1 = commit->tree->object.sha1; object 830 log-tree.c diff_tree_sha1(parents->item->tree->object.sha1, object 845 log-tree.c diff_tree_sha1(parent->tree->object.sha1, object 14 merge-blobs.c buf = read_sha1_file(obj->object.sha1, &type, &size); object 103 merge-blobs.c return read_sha1_file(our->object.sha1, &type, size); object 32 merge-recursive.c shift_tree(one->object.sha1, two->object.sha1, shifted, 0); object 34 merge-recursive.c shift_tree_by(one->object.sha1, two->object.sha1, shifted, object 37 merge-recursive.c if (!hashcmp(two->object.sha1, shifted)) object 48 merge-recursive.c desc->obj = (struct object *)commit; object 51 merge-recursive.c commit->object.parsed = 1; object 187 merge-recursive.c printf("%s ", find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV)); object 316 merge-recursive.c get_tree_entry(o->object.sha1, path, object 318 merge-recursive.c get_tree_entry(a->object.sha1, path, object 320 merge-recursive.c get_tree_entry(b->object.sha1, path, object 496 merge-recursive.c diff_tree_sha1(o_tree->object.sha1, tree->object.sha1, "", &opts); object 1816 merge-recursive.c if (sha_eq(common->object.sha1, merge->object.sha1)) { object 1827 merge-recursive.c sha1_to_hex(head->object.sha1), object 1828 merge-recursive.c sha1_to_hex(merge->object.sha1)); object 1979 merge-recursive.c struct object *object; object 1981 merge-recursive.c object = deref_tag(parse_object(sha1), name, strlen(name)); object 1982 merge-recursive.c if (!object) object 1984 merge-recursive.c if (object->type == OBJ_TREE) object 1985 merge-recursive.c return make_virtual_commit((struct tree*)object, name); object 1986 merge-recursive.c if (object->type != OBJ_COMMIT) object 1988 merge-recursive.c if (parse_commit((struct commit *)object)) object 1990 merge-recursive.c return (struct commit *)object; object 13 merge.c return sha1_to_hex(commit->object.sha1); object 605 notes-merge.c base_sha1 = bases->item->object.sha1; object 606 notes-merge.c base_tree_sha1 = bases->item->tree->object.sha1; object 612 notes-merge.c base_sha1 = bases->item->object.sha1; object 613 notes-merge.c base_tree_sha1 = bases->item->tree->object.sha1; object 621 notes-merge.c "merge-base %.7s\n", sha1_to_hex(remote->object.sha1), object 622 notes-merge.c sha1_to_hex(local->object.sha1), object 625 notes-merge.c if (!hashcmp(remote->object.sha1, base_sha1)) { object 629 notes-merge.c hashcpy(result_sha1, local->object.sha1); object 632 notes-merge.c if (!hashcmp(local->object.sha1, base_sha1)) { object 636 notes-merge.c hashcpy(result_sha1, remote->object.sha1); object 640 notes-merge.c result = merge_from_diffs(o, base_tree_sha1, local->tree->object.sha1, object 641 notes-merge.c remote->tree->object.sha1, local_tree); object 8 object.c static struct object **obj_hash; object 16 object.c struct object *get_indexed_object(unsigned int idx) object 69 object.c static void insert_obj_hash(struct object *obj, struct object **hash, unsigned int size) object 85 object.c struct object *lookup_object(const unsigned char *sha1) object 88 object.c struct object *obj; object 107 object.c struct object *tmp = obj_hash[i]; object 127 object.c struct object **new_hash; object 129 object.c new_hash = xcalloc(new_hash_size, sizeof(struct object *)); object 131 object.c struct object *obj = obj_hash[i]; object 143 object.c struct object *obj = o; object 158 object.c void *object_as_type(struct object *obj, enum object_type type, int quiet) object 177 object.c struct object *lookup_unknown_object(const unsigned char *sha1) object 179 object.c struct object *obj = lookup_object(sha1); object 185 object.c struct object *parse_object_buffer(const unsigned char *sha1, enum object_type type, unsigned long size, void *buffer, int *eaten_p) object 187 object.c struct object *obj; object 196 object.c obj = &blob->object; object 201 object.c obj = &tree->object; object 203 object.c tree->object.parsed = 0; object 204 object.c if (!tree->object.parsed) { object 219 object.c obj = &commit->object; object 226 object.c obj = &tag->object; object 235 object.c struct object *parse_object_or_die(const unsigned char *sha1, object 238 object.c struct object *o = parse_object(sha1); object 245 object.c struct object *parse_object(const unsigned char *sha1) object 252 object.c struct object *obj; object 285 object.c struct object_list *object_list_insert(struct object *item, object 295 object.c int object_list_contains(struct object_list *list, struct object *obj) object 311 object.c void add_object_array_with_path(struct object *obj, const char *name, object 343 object.c void add_object_array(struct object *obj, const char *name, struct object_array *array) object 393 object.c struct object_array_entry *object = array->objects; object 395 object.c for (i = 0; i < nr; i++, object++) object 396 object.c if (!strcmp(object->name, name)) object 423 object.c struct object *obj = obj_hash[i]; object 5 object.h struct object *item; object 13 object.h struct object *item; object 67 object.h extern struct object *get_indexed_object(unsigned int); object 81 object.h struct object *lookup_object(const unsigned char *sha1); object 85 object.h void *object_as_type(struct object *obj, enum object_type type, int quiet); object 92 object.h struct object *parse_object(const unsigned char *sha1); object 99 object.h struct object *parse_object_or_die(const unsigned char *sha1, const char *name); object 105 object.h struct object *parse_object_buffer(const unsigned char *sha1, enum object_type type, unsigned long size, void *buffer, int *eaten_p); object 108 object.h struct object *lookup_unknown_object(const unsigned char *sha1); object 110 object.h struct object_list *object_list_insert(struct object *item, object 113 object.h int object_list_contains(struct object_list *list, struct object *obj); object 116 object.h void add_object_array(struct object *obj, const char *name, struct object_array *array); object 117 object.h void add_object_array_with_path(struct object *obj, const char *name, struct object_array *array, unsigned mode, const char *path); object 107 pack-bitmap-write.c static struct object **seen_objects; object 124 pack-bitmap-write.c static inline void mark_as_seen(struct object *object) object 127 pack-bitmap-write.c seen_objects[seen_objects_nr++] = object; object 151 pack-bitmap-write.c static void show_object(struct object *object, const struct name_path *path, object 155 pack-bitmap-write.c bitmap_set(base, find_object_pos(object->sha1)); object 156 pack-bitmap-write.c mark_as_seen(object); object 161 pack-bitmap-write.c mark_as_seen((struct object *)commit); object 168 pack-bitmap-write.c uint32_t bitmap_pos = find_object_pos(commit->object.sha1); object 173 pack-bitmap-write.c hash_pos = kh_get_sha1(writer.bitmaps, commit->object.sha1); object 192 pack-bitmap-write.c mark_as_seen((struct object *)commit); object 195 pack-bitmap-write.c parent->item->object.flags |= SEEN; object 196 pack-bitmap-write.c mark_as_seen((struct object *)parent->item); object 274 pack-bitmap-write.c struct object *object; object 280 pack-bitmap-write.c object = (struct object *)stored->commit; object 291 pack-bitmap-write.c add_pending_object(&revs, object, ""); object 311 pack-bitmap-write.c hash_pos = kh_put_sha1(writer.bitmaps, object->sha1, &hash_ret); object 314 pack-bitmap-write.c sha1_to_hex(object->sha1)); object 417 pack-bitmap-write.c reused_bitmap = find_reused_bitmap(chosen->object.sha1); object 424 pack-bitmap-write.c reused_bitmap = find_reused_bitmap(cm->object.sha1); object 425 pack-bitmap-write.c if (reused_bitmap || (cm->object.flags & NEEDS_BITMAP) != 0) { object 477 pack-bitmap-write.c sha1_pos(stored->commit->object.sha1, index, index_nr, sha1_access); object 80 pack-bitmap.c struct object **objects; object 397 pack-bitmap.c static int ext_index_add_object(struct object *object, const char *name) object 405 pack-bitmap.c hash_pos = kh_put_sha1_pos(eindex->positions, object->sha1, &hash_ret); object 414 pack-bitmap.c eindex->objects[eindex->count] = object; object 425 pack-bitmap.c static void show_object(struct object *object, const struct name_path *path, object 431 pack-bitmap.c bitmap_pos = bitmap_position(object->sha1); object 435 pack-bitmap.c bitmap_pos = ext_index_add_object(object, name); object 474 pack-bitmap.c bitmap_pos = bitmap_position(commit->object.sha1); object 476 pack-bitmap.c bitmap_pos = ext_index_add_object((struct object *)commit, NULL); object 478 pack-bitmap.c if (!add_to_include_set(data, commit->object.sha1, bitmap_pos)) { object 482 pack-bitmap.c parent->item->object.flags |= SEEN; object 510 pack-bitmap.c struct object *object = roots->item; object 513 pack-bitmap.c if (object->type == OBJ_COMMIT) { object 514 pack-bitmap.c khiter_t pos = kh_get_sha1(bitmap_git.bitmaps, object->sha1); object 525 pack-bitmap.c object->flags |= SEEN; object 530 pack-bitmap.c object_list_insert(object, ¬_mapped); object 552 pack-bitmap.c struct object *object = roots->item; object 556 pack-bitmap.c pos = bitmap_position(object->sha1); object 559 pack-bitmap.c object->flags &= ~UNINTERESTING; object 560 pack-bitmap.c add_pending_object(revs, object, ""); object 563 pack-bitmap.c object->flags |= SEEN; object 595 pack-bitmap.c struct object *obj; object 655 pack-bitmap.c struct object *object = roots->item; object 658 pack-bitmap.c if (find_pack_entry_one(object->sha1, bitmap_git.pack) > 0) object 685 pack-bitmap.c struct object *object = pending_e[i].item; object 687 pack-bitmap.c if (object->type == OBJ_NONE) object 688 pack-bitmap.c parse_object_or_die(object->sha1, NULL); object 690 pack-bitmap.c while (object->type == OBJ_TAG) { object 691 pack-bitmap.c struct tag *tag = (struct tag *) object; object 693 pack-bitmap.c if (object->flags & UNINTERESTING) object 694 pack-bitmap.c object_list_insert(object, &haves); object 696 pack-bitmap.c object_list_insert(object, &wants); object 700 pack-bitmap.c object = parse_object_or_die(tag->tagged->sha1, NULL); object 703 pack-bitmap.c if (object->flags & UNINTERESTING) object 704 pack-bitmap.c object_list_insert(object, &haves); object 706 pack-bitmap.c object_list_insert(object, &wants); object 905 pack-bitmap.c static void test_show_object(struct object *object, object 912 pack-bitmap.c bitmap_pos = bitmap_position(object->sha1); object 914 pack-bitmap.c die("Object not in bitmap: %s\n", sha1_to_hex(object->sha1)); object 925 pack-bitmap.c bitmap_pos = bitmap_position(commit->object.sha1); object 927 pack-bitmap.c die("Object not in bitmap: %s\n", sha1_to_hex(commit->object.sha1)); object 935 pack-bitmap.c struct object *root; object 11 patch-ids.c diff_tree_sha1(commit->parents->item->object.sha1, object 12 patch-ids.c commit->object.sha1, "", options); object 14 patch-ids.c diff_root_tree_sha1(commit->object.sha1, "", options); object 546 pretty.c hex = find_unique_abbrev(p->object.sha1, pp->abbrev); object 548 pretty.c hex = sha1_to_hex(p->object.sha1); object 1121 pretty.c if (!commit->object.parsed) object 1122 pretty.c parse_object(commit->object.sha1); object 1127 pretty.c strbuf_addstr(sb, sha1_to_hex(commit->object.sha1)); object 1136 pretty.c strbuf_addstr(sb, find_unique_abbrev(commit->object.sha1, object 1142 pretty.c strbuf_addstr(sb, sha1_to_hex(commit->tree->object.sha1)); object 1147 pretty.c strbuf_addstr(sb, find_unique_abbrev(commit->tree->object.sha1, object 1155 pretty.c strbuf_addstr(sb, sha1_to_hex(p->item->object.sha1)); object 1165 pretty.c p->item->object.sha1, object 29 reachable.c struct object *object; object 36 reachable.c object = parse_object_or_die(oid->hash, path); object 37 reachable.c add_pending_object(revs, object, ""); object 46 reachable.c static void mark_object(struct object *obj, const struct name_path *path, object 54 reachable.c mark_object(&c->object, NULL, NULL, data); object 66 reachable.c struct object *obj; object 89 reachable.c obj = (struct object *)lookup_tree(sha1); object 92 reachable.c obj = (struct object *)lookup_blob(sha1); object 109 reachable.c struct object *obj = lookup_object(sha1); object 135 reachable.c struct object *obj = lookup_object(sha1); object 179 ref-filter.c static void *get_obj(const unsigned char *sha1, struct object **obj, unsigned long *sz, int *eaten) object 208 ref-filter.c static void grab_common_values(struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 233 ref-filter.c static void grab_tag_values(struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 258 ref-filter.c static void grab_commit_values(struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 272 ref-filter.c strcpy(s, sha1_to_hex(commit->tree->object.sha1)); object 291 ref-filter.c strcpy(s+i, sha1_to_hex(parent->object.sha1)); object 397 ref-filter.c static void grab_person(const char *who, struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 501 ref-filter.c static void grab_sub_body_contents(struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 563 ref-filter.c static void grab_values(struct atom_value *val, int deref, struct object *obj, void *buf, unsigned long sz) object 602 ref-filter.c struct object *obj; object 153 reflog-walk.c if (commit->object.flags & UNINTERESTING) object 1842 refs.c struct object *o = lookup_unknown_object(name); object 3403 refs.c struct object *o; object 1338 remote.c if (!commit || (commit->object.flags & TMP_MARK)) object 1340 remote.c commit->object.flags |= TMP_MARK; object 1979 remote.c temp->item->object.flags &= ~mark; object 1987 remote.c struct object *o; object 2077 remote.c strcpy(symmetric, sha1_to_hex(ours->object.sha1)); object 2079 remote.c strcpy(symmetric + 43, sha1_to_hex(theirs->object.sha1)); object 2093 remote.c if (c->object.flags & SYMMETRIC_LEFT) object 81 revision.c void show_object_with_name(FILE *out, struct object *obj, object 98 revision.c if (blob->object.flags & UNINTERESTING) object 100 revision.c blob->object.flags |= UNINTERESTING; object 107 revision.c struct object *obj = &tree->object; object 138 revision.c struct object *obj = &tree->object; object 170 revision.c if (!has_sha1_file(commit->object.sha1)) object 171 revision.c commit->object.parsed = 1; object 173 revision.c if (commit->object.flags & UNINTERESTING) object 176 revision.c commit->object.flags |= UNINTERESTING; object 197 revision.c struct object *obj, object 223 revision.c struct object *obj, object 230 revision.c struct object *obj, const char *name) object 238 revision.c struct object *obj; object 247 revision.c static struct object *get_reference(struct rev_info *revs, const char *name, object 251 revision.c struct object *object; object 253 revision.c object = parse_object(sha1); object 254 revision.c if (!object) { object 256 revision.c return object; object 259 revision.c object->flags |= flags; object 260 revision.c return object; object 266 revision.c struct object *object = get_reference(revs, name, sha1, flags); object 267 revision.c add_pending_object(revs, object, name); object 273 revision.c struct object *object = entry->item; object 277 revision.c unsigned long flags = object->flags; object 282 revision.c while (object->type == OBJ_TAG) { object 283 revision.c struct tag *tag = (struct tag *) object; object 285 revision.c add_pending_object(revs, object, tag->tag); object 288 revision.c object = parse_object(tag->tagged->sha1); object 289 revision.c if (!object) { object 294 revision.c object->flags |= flags; object 309 revision.c if (object->type == OBJ_COMMIT) { object 310 revision.c struct commit *commit = (struct commit *)object; object 326 revision.c if (object->type == OBJ_TREE) { object 327 revision.c struct tree *tree = (struct tree *)object; object 334 revision.c add_pending_object_with_path(revs, object, name, mode, path); object 341 revision.c if (object->type == OBJ_BLOB) { object 346 revision.c add_pending_object_with_path(revs, object, name, mode, path); object 359 revision.c if (!(commit->object.flags & UNINTERESTING)) object 366 revision.c if (commit->object.flags & UNINTERESTING) object 403 revision.c return (commit->object.flags & (UNINTERESTING | BOTTOM)) != UNINTERESTING; object 501 revision.c if (get_name_decoration(&commit->object)) object 516 revision.c if (diff_tree_sha1(t1->object.sha1, t2->object.sha1, "", object 532 revision.c retval = diff_tree_sha1(NULL, t1->object.sha1, "", &revs->pruning); object 547 revision.c add_decoration(&revs->treesame, &commit->object, st); object 570 revision.c old_same = !!(commit->object.flags & TREESAME); object 572 revision.c commit->object.flags |= TREESAME; object 574 revision.c commit->object.flags &= ~TREESAME; object 578 revision.c st = lookup_decoration(&revs->treesame, &commit->object); object 596 revision.c commit->object.flags |= TREESAME; object 598 revision.c commit->object.flags &= ~TREESAME; object 599 revision.c free(add_decoration(&revs->treesame, &commit->object, NULL)); object 614 revision.c st = lookup_decoration(&revs->treesame, &commit->object); object 616 revision.c die("update_treesame %s", sha1_to_hex(commit->object.sha1)); object 627 revision.c commit->object.flags &= ~TREESAME; object 629 revision.c commit->object.flags |= TREESAME; object 632 revision.c return commit->object.flags & TREESAME; object 668 revision.c commit->object.flags |= TREESAME; object 706 revision.c !(commit->object.flags & UNINTERESTING)) { object 714 revision.c sha1_to_hex(commit->object.sha1), object 715 revision.c sha1_to_hex(p->object.sha1)); object 731 revision.c commit->object.flags |= TREESAME; object 747 revision.c sha1_to_hex(commit->object.sha1), object 748 revision.c sha1_to_hex(p->object.sha1)); object 760 revision.c die("bad tree compare for commit %s", sha1_to_hex(commit->object.sha1)); object 774 revision.c commit->object.flags |= TREESAME; object 798 revision.c if (commit->object.flags & ADDED) object 800 revision.c commit->object.flags |= ADDED; object 818 revision.c if (commit->object.flags & UNINTERESTING) { object 823 revision.c p->object.flags |= UNINTERESTING; object 828 revision.c if (p->object.flags & SEEN) object 830 revision.c p->object.flags |= SEEN; object 846 revision.c left_flag = (commit->object.flags & SYMMETRIC_LEFT); object 855 revision.c p->object.flags |= left_flag; object 856 revision.c if (!(p->object.flags & SEEN)) { object 857 revision.c p->object.flags |= SEEN; object 877 revision.c unsigned flags = commit->object.flags; object 896 revision.c unsigned flags = commit->object.flags; object 917 revision.c unsigned flags = commit->object.flags; object 935 revision.c commit->object.flags |= cherry_flag; object 947 revision.c commit->object.flags |= cherry_flag; object 1005 revision.c p->item->object.flags |= TMP_MARK; object 1016 revision.c if (c->object.flags & (TMP_MARK | UNINTERESTING)) object 1021 revision.c if (!(parents->item->object.flags & TMP_MARK)) object 1023 revision.c c->object.flags |= TMP_MARK; object 1041 revision.c if (c->object.flags & TMP_MARK) object 1043 revision.c c->object.flags |= UNINTERESTING; object 1048 revision.c p->item->object.flags &= ~TMP_MARK; object 1050 revision.c p->item->object.flags &= ~TMP_MARK; object 1066 revision.c if (elem->item->object.flags & BOTTOM) object 1080 revision.c if (commit->object.flags & SYMMETRIC_LEFT) object 1081 revision.c commit->object.flags |= SHOWN; object 1083 revision.c if (!(commit->object.flags & SYMMETRIC_LEFT)) object 1084 revision.c commit->object.flags |= SHOWN; object 1107 revision.c struct object *obj = &commit->object; object 1162 revision.c if (c->object.flags & (UNINTERESTING | TREESAME)) object 1176 revision.c struct object *item, object 1198 revision.c struct object *object = &commit_list->item->object; object 1199 revision.c add_rev_cmdline(revs, object, sha1_to_hex(object->sha1), object 1229 revision.c struct object *object; object 1234 revision.c object = get_reference(cb->all_revs, path, oid->hash, cb->all_flags); object 1235 revision.c add_rev_cmdline(cb->all_revs, object, path, REV_CMD_REF, cb->all_flags); object 1277 revision.c struct object *o = parse_object(sha1); object 1327 revision.c add_pending_object_with_path(revs, &tree->object, "", object 1355 revision.c add_pending_object_with_path(revs, &blob->object, "", object 1369 revision.c struct object *it; object 1394 revision.c it = &parents->item->object; object 1443 revision.c struct object *object = &commit_list->item->object; object 1444 revision.c object->flags |= flags; object 1445 revision.c add_pending_object(revs, object, sha1_to_hex(object->sha1)); object 1464 revision.c add_pending_object(revs, &head->object, "HEAD"); object 1465 revision.c add_pending_object(revs, &other->object, "MERGE_HEAD"); object 1470 revision.c head->object.flags |= SYMMETRIC_LEFT; object 1498 revision.c struct object *object; object 1537 revision.c struct object *a_obj, *b_obj; object 1621 revision.c object = get_reference(revs, arg, sha1, flags ^ local_flags); object 1622 revision.c add_rev_cmdline(revs, object, arg_, REV_CMD_REV, flags ^ local_flags); object 1623 revision.c add_pending_object_with_mode(revs, object, arg, oc.mode); object 2331 revision.c struct object *object; object 2335 revision.c object = get_reference(revs, revs->def, sha1, 0); object 2336 revision.c add_pending_object_with_mode(revs, object, revs->def, oc.mode); object 2405 revision.c l->next = add_decoration(&revs->children, &parent->object, l); object 2410 revision.c struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object); object 2419 revision.c if (parent->object.flags & TMP_MARK) { object 2425 revision.c parent->object.flags |= TMP_MARK; object 2431 revision.c p->item->object.flags &= ~TMP_MARK; object 2445 revision.c st = lookup_decoration(&revs->merge_simplification, &commit->object); object 2448 revision.c add_decoration(&revs->merge_simplification, &commit->object, st); object 2475 revision.c po->item->object.flags |= TMP_MARK; object 2496 revision.c if (!parent->parents && (parent->object.flags & TREESAME)) { object 2497 revision.c parent->object.flags |= TMP_MARK; object 2512 revision.c struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object); object 2519 revision.c if (p->item->object.flags & TMP_MARK) { object 2565 revision.c marked->object.flags &= ~TMP_MARK; object 2581 revision.c if (parent->object.flags & TMP_MARK) { object 2582 revision.c parent->object.flags &= ~TMP_MARK; object 2594 revision.c if (removed && !(commit->object.flags & TREESAME)) object 2620 revision.c if ((commit->object.flags & UNINTERESTING) || !commit->parents) { object 2700 revision.c (commit->object.flags & UNINTERESTING) || object 2701 revision.c !(commit->object.flags & TREESAME) || object 2792 revision.c if (!(commit->object.flags & SEEN)) { object 2793 revision.c commit->object.flags |= SEEN; object 2833 revision.c if (p->object.flags & UNINTERESTING) object 2835 revision.c if (!(p->object.flags & TREESAME)) object 2954 revision.c format_display_notes(commit->object.sha1, &buf, encoding, 1); object 2982 revision.c if (commit->object.flags & SHOWN) object 2984 revision.c if (revs->unpacked && has_sha1_pack(commit->object.sha1)) object 2988 revision.c if (commit->object.flags & UNINTERESTING) object 3002 revision.c if (commit->object.flags & TREESAME) { object 3110 revision.c !hashcmp(p->item->object.sha1, commit->object.sha1)) object 3116 revision.c commit->object.flags |= TRACK_LINEAR; object 3137 revision.c commit->object.flags &= ~(ADDED | SEEN | SHOWN); object 3152 revision.c sha1_to_hex(commit->object.sha1)); object 3161 revision.c sha1_to_hex(commit->object.sha1)); object 3216 revision.c if (!(c->object.flags & CHILD_SHOWN)) object 3218 revision.c if (c->object.flags & (SHOWN | BOUNDARY)) object 3220 revision.c c->object.flags |= BOUNDARY; object 3245 revision.c c->object.flags |= SHOWN; object 3275 revision.c c->object.flags |= SHOWN; object 3305 revision.c struct object *p; object 3306 revision.c p = &(l->item->object); object 3334 revision.c revs->linear = !!(c && c->object.flags & TRACK_LINEAR); object 3353 revision.c if (commit->object.flags & BOUNDARY) object 3355 revision.c else if (commit->object.flags & UNINTERESTING) object 3357 revision.c else if (commit->object.flags & PATCHSAME) object 3360 revision.c if (commit->object.flags & SYMMETRIC_LEFT) object 37 revision.h struct object *item; object 267 revision.h extern void show_object_with_name(FILE *, struct object *, object 271 revision.h struct object *obj, const char *name); object 142 sequencer.c abbrev = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV); object 349 sequencer.c return !hashcmp(active_cache_tree->sha1, head_commit->tree->object.sha1); object 400 sequencer.c sha1_to_hex(commit->object.sha1)); object 405 sequencer.c sha1_to_hex(parent->object.sha1)); object 406 sequencer.c ptree_sha1 = parent->tree->object.sha1; object 411 sequencer.c return !hashcmp(ptree_sha1, commit->tree->object.sha1); object 489 sequencer.c sha1_to_hex(commit->object.sha1)); object 497 sequencer.c sha1_to_hex(commit->object.sha1), opts->mainline); object 501 sequencer.c sha1_to_hex(commit->object.sha1)); object 506 sequencer.c ((parent && !hashcmp(parent->object.sha1, head)) || object 508 sequencer.c return fast_forward_to(commit->object.sha1, head, unborn, opts); object 514 sequencer.c action_name(opts), sha1_to_hex(parent->object.sha1)); object 518 sequencer.c sha1_to_hex(commit->object.sha1)); object 535 sequencer.c strbuf_addstr(&msgbuf, sha1_to_hex(commit->object.sha1)); object 539 sequencer.c strbuf_addstr(&msgbuf, sha1_to_hex(parent->object.sha1)); object 565 sequencer.c strbuf_addstr(&msgbuf, sha1_to_hex(commit->object.sha1)); object 595 sequencer.c update_ref(NULL, "CHERRY_PICK_HEAD", commit->object.sha1, NULL, object 598 sequencer.c update_ref(NULL, "REVERT_HEAD", commit->object.sha1, NULL, object 605 sequencer.c find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), object 667 sequencer.c sha1_abbrev = find_unique_abbrev(cur->item->object.sha1, DEFAULT_ABBREV); object 54 server-info.c struct object *o = parse_object(oid->hash); object 235 sha1_name.c struct object *obj; object 259 sha1_name.c struct object *obj; object 609 sha1_name.c hashcpy(result, commit->object.sha1); object 615 sha1_name.c hashcpy(result, p->item->object.sha1); object 642 sha1_name.c hashcpy(result, commit->object.sha1); object 646 sha1_name.c struct object *peel_to_type(const char *name, int namelen, object 647 sha1_name.c struct object *o, enum object_type expected_type) object 659 sha1_name.c o = &(((struct commit *) o)->tree->object); object 677 sha1_name.c struct object *o; object 852 sha1_name.c struct object *object = parse_object(oid->hash); object 853 sha1_name.c if (!object) object 855 sha1_name.c if (object->type == OBJ_TAG) { object 856 sha1_name.c object = deref_tag(object, path, strlen(path)); object 857 sha1_name.c if (!object) object 860 sha1_name.c if (object->type != OBJ_COMMIT) object 862 sha1_name.c commit_list_insert((struct commit *)object, list); object 883 sha1_name.c l->item->object.flags |= ONELINE_SEEN; object 892 sha1_name.c if (!parse_object(commit->object.sha1)) object 900 sha1_name.c hashcpy(sha1, commit->object.sha1); object 1015 sha1_name.c hashcpy(sha1, mbs->item->object.sha1); object 37 shallow.c if (commit && commit->object.parsed) object 91 shallow.c if (!commit || commit->object.type != OBJ_COMMIT) { object 109 shallow.c (graft = lookup_commit_graft(commit->object.sha1)) != NULL && object 112 shallow.c commit->object.flags |= shallow_flag; object 116 shallow.c commit->object.flags |= not_shallow_flag; object 129 shallow.c add_object_array(&p->item->object, object 168 shallow.c if (!c || !(c->object.flags & SEEN)) { object 171 shallow.c sha1_to_hex(c->object.sha1)); object 412 shallow.c if (c->object.flags & (SEEN | UNINTERESTING)) object 415 shallow.c c->object.flags |= SEEN; object 429 shallow.c if (c->object.flags & BOTTOM) object 434 shallow.c sha1_to_hex(c->object.sha1)); object 439 shallow.c if (p->item->object.flags & SEEN) object 449 shallow.c struct object *o = get_indexed_object(i); object 463 shallow.c commit->object.flags |= UNINTERESTING; object 507 shallow.c struct object *o = get_indexed_object(i); object 529 shallow.c c->object.flags |= BOTTOM; object 237 submodule.c left->object.flags |= SYMMETRIC_LEFT; object 238 submodule.c add_pending_object(rev, &left->object, path); object 239 submodule.c add_pending_object(rev, &right->object, path); object 248 submodule.c list->item->object.flags |= UNINTERESTING; object 249 submodule.c add_pending_object(rev, &list->item->object, object 250 submodule.c sha1_to_hex(list->item->object.sha1)); object 269 submodule.c if (commit->object.flags & SYMMETRIC_LEFT) { object 598 submodule.c diff_tree_sha1(parent->item->object.sha1, commit->object.sha1, "", &diff_opts); object 876 submodule.c sha1_to_hex(a->object.sha1)); object 885 submodule.c struct object *o = &(commit->object); object 9 tag.c struct object *deref_tag(struct object *o, const char *warn, int warnlen) object 24 tag.c struct object *deref_tag_noverify(struct object *o) object 38 tag.c struct object *obj = lookup_object(sha1); object 69 tag.c if (item->object.parsed) object 71 tag.c item->object.parsed = 1; object 90 tag.c item->tagged = &lookup_blob(sha1)->object; object 92 tag.c item->tagged = &lookup_tree(sha1)->object; object 94 tag.c item->tagged = &lookup_commit(sha1)->object; object 96 tag.c item->tagged = &lookup_tag(sha1)->object; object 128 tag.c if (item->object.parsed) object 130 tag.c data = read_sha1_file(item->object.sha1, &type, &size); object 133 tag.c sha1_to_hex(item->object.sha1)); object 137 tag.c sha1_to_hex(item->object.sha1)); object 9 tag.h struct object object; object 10 tag.h struct object *tagged; object 18 tag.h extern struct object *deref_tag(struct object *, const char *, int); object 19 tag.h extern struct object *deref_tag_noverify(struct object *); object 20 test-match-trees.c shift_tree(one->object.sha1, two->object.sha1, shifted, -1); object 105 tree.c hashcpy(sha1, commit->tree->object.sha1); object 190 tree.c struct object *obj = lookup_object(sha1); object 198 tree.c if (item->object.parsed) object 200 tree.c item->object.parsed = 1; object 213 tree.c if (item->object.parsed) object 215 tree.c buffer = read_sha1_file(item->object.sha1, &type, &size); object 219 tree.c sha1_to_hex(item->object.sha1)); object 223 tree.c sha1_to_hex(item->object.sha1)); object 233 tree.c tree->object.parsed = 0; object 238 tree.c struct object *obj = parse_object(sha1); object 245 tree.c obj = &(((struct commit *) obj)->tree->object); object 10 tree.h struct object object; object 281 upload-pack.c struct object *o; object 304 upload-pack.c parents->item->object.flags |= THEY_HAVE; object 324 upload-pack.c if (commit->object.flags & THEY_HAVE) { object 325 upload-pack.c want->object.flags |= COMMON_KNOWN; object 328 upload-pack.c if (!commit->object.parsed) object 329 upload-pack.c parse_object(commit->object.sha1); object 330 upload-pack.c if (commit->object.flags & REACHABLE) object 332 upload-pack.c commit->object.flags |= REACHABLE; object 337 upload-pack.c if (!(parent->object.flags & REACHABLE)) object 341 upload-pack.c want->object.flags |= REACHABLE; object 344 upload-pack.c return (want->object.flags & COMMON_KNOWN); object 355 upload-pack.c struct object *want = want_obj.objects[i].item; object 447 upload-pack.c static int is_our_ref(struct object *o) object 460 upload-pack.c struct object *o; object 551 upload-pack.c struct object *o; object 561 upload-pack.c struct object *object; object 564 upload-pack.c object = parse_object(sha1); object 565 upload-pack.c if (!object) object 567 upload-pack.c if (object->type != OBJ_COMMIT) object 569 upload-pack.c if (!(object->flags & CLIENT_SHALLOW)) { object 570 upload-pack.c object->flags |= CLIENT_SHALLOW; object 571 upload-pack.c add_object_array(object, NULL, &shallows); object 640 upload-pack.c struct object *object = shallows.objects[i].item; object 641 upload-pack.c object->flags |= NOT_SHALLOW; object 648 upload-pack.c struct object *object = &result->item->object; object 649 upload-pack.c if (!(object->flags & (CLIENT_SHALLOW|NOT_SHALLOW))) { object 651 upload-pack.c sha1_to_hex(object->sha1)); object 652 upload-pack.c register_shallow(object->sha1); object 659 upload-pack.c struct object *object = shallows.objects[i].item; object 660 upload-pack.c if (object->flags & NOT_SHALLOW) { object 663 upload-pack.c sha1_to_hex(object->sha1)); object 664 upload-pack.c object->flags &= ~CLIENT_SHALLOW; object 666 upload-pack.c unregister_shallow(object->sha1); object 667 upload-pack.c object->parsed = 0; object 668 upload-pack.c parse_commit_or_die((struct commit *)object); object 669 upload-pack.c parents = ((struct commit *)object)->parents; object 671 upload-pack.c add_object_array(&parents->item->object, object 675 upload-pack.c add_object_array(object, NULL, &extra_edge_obj); object 678 upload-pack.c register_shallow(object->sha1); object 695 upload-pack.c struct object *o = lookup_unknown_object(oid->hash); object 18 walker.c static void report_missing(const struct object *obj) object 29 walker.c static int process(struct walker *walker, struct object *obj); object 41 walker.c struct object *obj = NULL; object 49 walker.c obj = &tree->object; object 54 walker.c obj = &blob->object; object 79 walker.c if (commit->object.flags & COMPLETE) object 82 walker.c hashcpy(current_commit_sha1, commit->object.sha1); object 84 walker.c walker_say(walker, "walk %s\n", sha1_to_hex(commit->object.sha1)); object 87 walker.c if (process(walker, &commit->tree->object)) object 95 walker.c if (process(walker, &parents->item->object)) object 112 walker.c static int process_object(struct walker *walker, struct object *obj) object 137 walker.c static int process(struct walker *walker, struct object *obj) object 163 walker.c struct object *obj = process_queue->item; object 209 walker.c commit->object.flags |= COMPLETE; object 1350 wt-status.c !hashcmp(cb.nsha1, commit->object.sha1)))) {