]> git.proxmox.com Git - libgit2.git/blame - src/revwalk.h
Merge pull request #2200 from libgit2/cmn/opts-buf
[libgit2.git] / src / revwalk.h
CommitLineData
4ff192d3 1/*
359fc2d2 2 * Copyright (C) the libgit2 contributors. All rights reserved.
4ff192d3
BS
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7#ifndef INCLUDE_revwalk_h__
8#define INCLUDE_revwalk_h__
9
10#include "git2/revwalk.h"
11#include "oidmap.h"
12#include "commit_list.h"
13#include "pqueue.h"
14#include "pool.h"
15#include "vector.h"
16
17GIT__USE_OIDMAP;
18
19struct git_revwalk {
20 git_repository *repo;
21 git_odb *odb;
22
23 git_oidmap *commits;
24 git_pool commit_pool;
25
26 git_commit_list *iterator_topo;
27 git_commit_list *iterator_rand;
28 git_commit_list *iterator_reverse;
29 git_pqueue iterator_time;
30
31 int (*get_next)(git_commit_list_node **, git_revwalk *);
32 int (*enqueue)(git_revwalk *, git_commit_list_node *);
33
15f7b9b8 34 unsigned walking:1,
704b55cc
CMN
35 first_parent: 1,
36 did_hide: 1;
4ff192d3
BS
37 unsigned int sorting;
38
39 /* merge base calculation */
40 git_commit_list_node *one;
41 git_vector twos;
42};
43
d5e44d84 44git_commit_list_node *git_revwalk__commit_lookup(git_revwalk *walk, const git_oid *oid);
4ff192d3
BS
45
46#endif