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

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

#define GIT_REVPOOL_SORT_NONE (0)
#define GIT_REVPOOL_SORT_TOPO (1 << 0)
#define GIT_REVPOOL_SORT_TIME (1 << 1)
#define GIT_REVPOOL_SORT_REVERSE (1 << 2)

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 char sorting;
};

#endif /* INCLUDE_revwalk_h__ */