2 * Copyright (C) the libgit2 contributors. All rights reserved.
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.
7 #ifndef INCLUDE_revwalk_h__
8 #define INCLUDE_revwalk_h__
12 #include "git2/revwalk.h"
14 #include "commit_list.h"
28 git_commit_list
*iterator_topo
;
29 git_commit_list
*iterator_rand
;
30 git_commit_list
*iterator_reverse
;
31 git_pqueue iterator_time
;
33 int (*get_next
)(git_commit_list_node
**, git_revwalk
*);
34 int (*enqueue
)(git_revwalk
*, git_commit_list_node
*);
43 /* the pushes and hides */
44 git_commit_list
*user_input
;
47 git_revwalk_hide_cb hide_cb
;
48 void *hide_cb_payload
;
51 git_commit_list_node
*git_revwalk__commit_lookup(git_revwalk
*walk
, const git_oid
*oid
);
57 } git_revwalk__push_options
;
59 #define GIT_REVWALK__PUSH_OPTIONS_INIT { 0 }
61 int git_revwalk__push_commit(git_revwalk
*walk
,
63 const git_revwalk__push_options
*opts
);
65 int git_revwalk__push_ref(git_revwalk
*walk
,
67 const git_revwalk__push_options
*opts
);
69 int git_revwalk__push_glob(git_revwalk
*walk
,
71 const git_revwalk__push_options
*given_opts
);