Make builtin-commit.c more careful about parenthood
commit7c3fd25dcf2a23ed43bae2ba23a46edab4644a9f
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Jan 2008 00:12:33 +0000 (15 16:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jan 2008 19:37:34 +0000 (16 11:37 -0800)
tree83fbd40987bbdc42e8f4facd6ec8dd1649094060
parent28624193b2ce622144136d373e136455b6b13967
Make builtin-commit.c more careful about parenthood

When creating the commit object, be a whole lot more careful about making
sure that the parent lines really are valid parent lines. Check things
like MERGE_HEAD having proper SHA1 lines in it, and double-check that all
the parents exist and are actually commits.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c