X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.h;h=70a7c75e6590ae7f8eef50f91a495fc6138fda4a;hb=3030baa7f06e65d6de2d612d7edb94d22f27d239;hp=986b22de8abd01e7404bc4f195be0d11baefb13a;hpb=3815f423ae39bf774de3c268c6d3e3b72128a4e5;p=git.git diff --git a/commit.h b/commit.h index 986b22de..70a7c75e 100644 --- a/commit.h +++ b/commit.h @@ -72,6 +72,8 @@ int count_parents(struct commit * commit); * Post-conditions: * invariant of resulting list is: * a reachable from b => ord(b) < ord(a) + * in addition, when lifo == 0, commits on parallel tracks are + * sorted in the dates order. */ -void sort_in_topological_order(struct commit_list ** list); +void sort_in_topological_order(struct commit_list ** list, int lifo); #endif /* COMMIT_H */