summaryrefslogtreecommitdiff
path: root/src/pqueue.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-16 01:53:25 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-16 01:53:25 +0200
commit36aaf1ff1a8540c364050f62f19f3021b6e121eb (patch)
tree80152aaf229f5ab50e0bbe452595542e8e4301fa /src/pqueue.c
parent8613d4a930541dccdc948cb18e313551ec42cb0e (diff)
downloadlibgit2-36aaf1ff1a8540c364050f62f19f3021b6e121eb.tar.gz
Change the Revwalk reset behavior to the old version
The `reset` call now removes the pushed commits so we can reuse the revwalker. The API documentation has been updated with the details.
Diffstat (limited to 'src/pqueue.c')
-rw-r--r--src/pqueue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pqueue.c b/src/pqueue.c
index 98152cb85..6307175e3 100644
--- a/src/pqueue.c
+++ b/src/pqueue.c
@@ -50,6 +50,10 @@ void git_pqueue_free(git_pqueue *q)
q->d = NULL;
}
+void git_pqueue_clear(git_pqueue *q)
+{
+ q->size = 1;
+}
size_t git_pqueue_size(git_pqueue *q)
{