author | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Apr 2006 23:55:25 +0000 (16:55 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Apr 2006 23:55:25 +0000 (16:55 -0700) | ||
commit | 5981e09999e90b389a02843671529a0faaf72143 | |
tree | 0334be8483eb8abe0b1e42664cd11ef16db055c4 | tree | snapshot |
parent | e23d0b4a4a55cc07e133905f0e9526b3550dd61b | commit | diff |
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>
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>
commit-tree.c | diff | blob | history |