| 853 | }; |
| 854 | |
| 855 | static struct treesame_state *initialise_treesame(struct rev_info *revs, struct commit *commit) |
| 856 | { |
| 857 | unsigned n = commit_list_count(commit->parents); |
| 858 | struct treesame_state *st = xcalloc(1, st_add(sizeof(*st), n)); |
| 859 | st->nparents = n; |
| 860 | add_decoration(&revs->treesame, &commit->object, st); |
| 861 | return st; |
| 862 | } |
| 863 | |
| 864 | /* |
| 865 | * Must be called immediately after removing the nth_parent from a commit's |
no test coverage detected