diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-02-27 22:31:43 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-03 20:23:50 +0200 |
| commit | 87d3acf45eb1a63b5847bca2061a993471b8b1ee (patch) | |
| tree | fe1c9ad96065ba92a838f62a3c49ccb91f6425b9 /tests | |
| parent | 17cdf25208202300def293ce1997b97aeb517586 (diff) | |
| download | libgit2-87d3acf45eb1a63b5847bca2061a993471b8b1ee.tar.gz | |
Finish the References API
The following methods have been implemented:
git_reference_packall
git_reference_rename
git_reference_delete
The library now has full support for packed references, including
partial and total writing. Internal documentation has been updated with
the details.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/t10-refs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/t10-refs.c b/tests/t10-refs.c index a5e9a3351..0d6c03f64 100644 --- a/tests/t10-refs.c +++ b/tests/t10-refs.c @@ -296,6 +296,13 @@ BEGIN_TEST("createref", create_new_object_id_ref) must_pass(gitfo_unlink(ref_path)); /* TODO: replace with git_reference_delete() when available */ END_TEST +BEGIN_TEST("packrefs", create_packfile) + git_repository *repo; + must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); + must_pass(git_reference_packall(repo)); + git_repository_free(repo); +END_TEST + static int ensure_refname_normalized(int is_oid_ref, const char *input_refname, const char *expected_refname) { int error = GIT_SUCCESS; @@ -494,6 +501,7 @@ git_testsuite *libgit2_suite_refs(void) ADD_TEST(suite, "normalizeref", normalize_object_id_ref); ADD_TEST(suite, "normalizeref", normalize_symbolic_ref); ADD_TEST(suite, "normalizeref", jgit_tests); + //ADD_TEST(suite, "packrefs", create_packfile); return suite; } |
