commit: force commit to parse from object database
commit9b19adac6f160c55427bd3d74293a94670487d83
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:30 +0000 (27 09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 17:27:05 +0000 (27 10:27 -0700)
tree76c43af6eca8cd87bc54ea6e45b8bb10dfbf95df
parentee79705311c190e61ac35d67705d387fdeae8c21
commit: force commit to parse from object database

In anticipation of verifying commit-graph file contents against the
object database, create parse_commit_internal() to allow side-stepping
the commit-graph file and parse directly from the object database.

Due to the use of generation numbers, this method should not be called
unless the intention is explicit in avoiding commits from the
commit-graph file.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h