Commit 8613d4a930541dccdc948cb18e313551ec42cb0e

Vicent Marti 2011-03-16T01:10:40

Fix signature in `git_repository_gc` The method returns an int with the amount of objects free'd

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 5eff53b..317b367 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -167,7 +167,7 @@ GIT_EXTERN(void) git_repository_free(git_repository *repo);
  *
  * @param repo repository handle to collect. If NULL nothing occurs.
  */
-GIT_EXTERN(void) git_repository_gc(git_repository *repo);
+GIT_EXTERN(int) git_repository_gc(git_repository *repo);
 
 /**
  * Creates a new Git repository in the given folder.