зеркало из https://github.com/microsoft/git.git
Don't parse commit objects more than once.
Yes, the "parse_commit()" already checks for this condition, but we need to check for it in rev-tree too, so that we don't start walking the parent chain unnecessarily.
This commit is contained in:
Родитель
0a9ea85000
Коммит
3b7d368f34
|
@ -55,6 +55,10 @@ void process_commit(unsigned char *sha1)
|
|||
{
|
||||
struct commit_list *parents;
|
||||
struct commit *obj = lookup_commit(sha1);
|
||||
|
||||
if (obj->object.parsed)
|
||||
return;
|
||||
|
||||
parse_commit(obj);
|
||||
|
||||
parents = obj->parents;
|
||||
|
|
Загрузка…
Ссылка в новой задаче