Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit-tree.c: check_valid() microoptimization.
There is no point reading the whole object just to make sure it exists and it is of the expected type. We added sha1_object_info() for such need after this code was written, so use it. Signed-off-by: Junio C Hamano <junkio@cox.net>
- Loading branch information