diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-01 18:04:28 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-01 18:04:28 +0100 |
commit | 0e07c1cd83535cf3a20d3d961a41bb4a627ce4e5 (patch) | |
tree | 32ac0fa81e02d0f56c583eda414d14aa89111a65 /commit-graph.c | |
parent | The first batch post 2.24 cycle (diff) | |
parent | fsck: accept an oid instead of a "struct tree" for fsck_tree() (diff) | |
download | git-0e07c1cd83535cf3a20d3d961a41bb4a627ce4e5.tar.xz git-0e07c1cd83535cf3a20d3d961a41bb4a627ce4e5.zip |
Merge branch 'jk/cleanup-object-parsing-and-fsck'
Crufty code and logic accumulated over time around the object
parsing and low-level object access used in "git fsck" have been
cleaned up.
* jk/cleanup-object-parsing-and-fsck: (23 commits)
fsck: accept an oid instead of a "struct tree" for fsck_tree()
fsck: accept an oid instead of a "struct commit" for fsck_commit()
fsck: accept an oid instead of a "struct tag" for fsck_tag()
fsck: rename vague "oid" local variables
fsck: don't require an object struct in verify_headers()
fsck: don't require an object struct for fsck_ident()
fsck: drop blob struct from fsck_finish()
fsck: accept an oid instead of a "struct blob" for fsck_blob()
fsck: don't require an object struct for report()
fsck: only require an oid for skiplist functions
fsck: only provide oid/type in fsck_error callback
fsck: don't require object structs for display functions
fsck: use oids rather than objects for object_name API
fsck_describe_object(): build on our get_object_name() primitive
fsck: unify object-name code
fsck: require an actual buffer for non-blobs
fsck: stop checking tag->tagged
fsck: stop checking commit->parent counts
fsck: stop checking commit->tree value
commit, tag: don't set parsed bit for parse failures
...
Diffstat (limited to 'commit-graph.c')
-rw-r--r-- | commit-graph.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/commit-graph.c b/commit-graph.c index 0aea7b2ae5..a0f868522b 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -858,9 +858,6 @@ static void write_graph_chunk_data(struct hashfile *f, int hash_len, die(_("unable to parse commit %s"), oid_to_hex(&(*list)->object.oid)); tree = get_commit_tree_oid(*list); - if (!tree) - die(_("unable to get tree for %s"), - oid_to_hex(&(*list)->object.oid)); hashwrite(f, tree->hash, hash_len); parent = (*list)->parents; |