From 58e28af6a4d4d4faa1fa628e91c0b33c2b87aade Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Sat, 23 Apr 2005 20:29:22 -0700 Subject: [PATCH] Allow multiple date-ordered lists Make pop_most_recent_commit() return the same objects multiple times, but only if called with different bits to mark. This is necessary to make merge-base work again. Signed-Off-By: Daniel Barkalow Signed-off-by: Linus Torvalds --- commit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commit.h') diff --git a/commit.h b/commit.h index c8684d1cd0..d61d084c89 100644 --- a/commit.h +++ b/commit.h @@ -31,6 +31,7 @@ void sort_by_date(struct commit_list **list); /** Removes the first commit from a list sorted by date, and adds all * of its parents. **/ -struct commit *pop_most_recent_commit(struct commit_list **list); +struct commit *pop_most_recent_commit(struct commit_list **list, + unsigned int mark); #endif /* COMMIT_H */ -- cgit v1.2.3