From e5d1faefab1bb51f3d0fff2d5e2cfe4fe96a9c22 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 25 May 2010 19:48:13 +0200 Subject: 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 Signed-off-by: Andreas Ericsson --- src/revwalk.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/revwalk.h') 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__ */ -- cgit v1.2.1