summaryrefslogtreecommitdiff
path: root/src/pqueue.h
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.h
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.h')
-rw-r--r--src/pqueue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pqueue.h b/src/pqueue.h
index 6db74661d..7a1394803 100644
--- a/src/pqueue.h
+++ b/src/pqueue.h
@@ -53,6 +53,11 @@ int git_pqueue_init(git_pqueue *q, size_t n, git_pqueue_cmp cmppri);
*/
void git_pqueue_free(git_pqueue *q);
+/**
+ * clear all the elements in the queue
+ * @param q the queue
+ */
+void git_pqueue_clear(git_pqueue *q);
/**
* return the size of the queue.