summaryrefslogtreecommitdiff
path: root/src/revwalk.h
blob: f7c4cf4a40255c3b0ca8d8981121e329478a92dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef INCLUDE_revwalk_h__
#define INCLUDE_revwalk_h__

#include "git/common.h"
#include "git/revwalk.h"

struct git_revpool {
	git_odb *db;

	git_commit_list iterator;
	git_commit *(*next_commit)(git_commit_list *);

	git_commit_list roots;
	git_revpool_table *commits;

	unsigned walking:1;
	unsigned int sorting;
};

void gitrp__prepare_walk(git_revpool *pool);
int gitrp__enroot(git_revpool *pool, git_commit *commit);

#endif /* INCLUDE_revwalk_h__ */