summaryrefslogtreecommitdiff
path: root/src/revwalk.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-05-25 19:48:13 +0200
committerAndreas Ericsson <ae@op5.se>2010-06-02 10:32:07 +0200
commite5d1faefab1bb51f3d0fff2d5e2cfe4fe96a9c22 (patch)
treeefa3c49e538c7d0724cbd9c32b24bbcde100b3cb /src/revwalk.h
parent9bdb75947178f72df30314d66bc9bcc90df643d7 (diff)
downloadlibgit2-e5d1faefab1bb51f3d0fff2d5e2cfe4fe96a9c22.tar.gz
Add external API for revision sorting.
The GIT_RPSORT_XXX flags have been moved to the external API, and a new method 'gitrp_sorting(...)' has been added to safely change the sorting method of a revision pool. Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/revwalk.h')
-rw-r--r--src/revwalk.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/revwalk.h b/src/revwalk.h
index 14599df10..da8182721 100644
--- a/src/revwalk.h
+++ b/src/revwalk.h
@@ -4,11 +4,6 @@
#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;
@@ -22,4 +17,7 @@ struct git_revpool {
unsigned char sorting;
};
+void gitrp__prepare_walk(git_revpool *pool);
+void gitrp__enroot(git_revpool *pool, git_commit *commit);
+
#endif /* INCLUDE_revwalk_h__ */