assume parse_commit checks for NULL commit
authorJeff King <peff@peff.net>
Thu, 24 Oct 2013 08:53:19 +0000 (04:53 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 22:43:50 +0000 (15:43 -0700)
commit5e7d4d3e932432131d0f8f4195e0061ecf644865
tree69826f91be44e4096551bc75e884f0f1db7d8db5
parent0064053bd76ba385e1b5d51b6175bc17bc507804
assume parse_commit checks for NULL commit

The parse_commit function will check whether it was passed a
NULL commit pointer, and if so, return an error. There is no
need for callers to check this separately.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
builtin/commit.c
commit.c
notes-utils.c
sha1_name.c