[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 <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
4056c09114
commit
58e28af6a4
3
commit.h
3
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 */
|
||||
|
Reference in New Issue
Block a user