]> git.proxmox.com Git - libgit2.git/commitdiff
refs: git_reference_listall -> git_reference_list
authorVicent Martí <tanoku@gmail.com>
Thu, 17 May 2012 18:35:48 +0000 (20:35 +0200)
committerVicent Martí <tanoku@gmail.com>
Thu, 17 May 2012 23:26:16 +0000 (01:26 +0200)
include/git2/refs.h
src/fetch.c
src/refs.c
src/transports/local.c
tests-clar/refs/list.c
tests-clar/refs/listall.c

index 2073aabc5ac8faa2f63945f73a341b428e584c9a..9abc3236941aa3f68ff946e0113607daa9886540 100644 (file)
@@ -256,7 +256,7 @@ GIT_EXTERN(int) git_reference_packall(git_repository *repo);
  *             listing.
  * @return GIT_SUCCESS or an error code
  */
-GIT_EXTERN(int) git_reference_listall(git_strarray *array, git_repository *repo, unsigned int list_flags);
+GIT_EXTERN(int) git_reference_list(git_strarray *array, git_repository *repo, unsigned int list_flags);
 
 
 /**
index 08c789ddb03faeaea23959f36bbc94f14f1c1086..c92cf4ef51b2c7224bd2089bafa953793162513e 100644 (file)
@@ -165,7 +165,7 @@ int git_fetch_setup_walk(git_revwalk **out, git_repository *repo)
        unsigned int i;
        git_reference *ref;
 
-       if (git_reference_listall(&refs, repo, GIT_REF_LISTALL) < 0)
+       if (git_reference_list(&refs, repo, GIT_REF_LISTALL) < 0)
                return -1;
 
        if (git_revwalk_new(&walk, repo) < 0)
index 28e8f786b93f14fe27d4538c7a6f8a4228655c11..9ba09249c2de90aa1b1f99174025531d9b98465c 100644 (file)
@@ -1518,7 +1518,7 @@ static int cb__reflist_add(const char *ref, void *data)
        return git_vector_insert((git_vector *)data, git__strdup(ref));
 }
 
-int git_reference_listall(
+int git_reference_list(
        git_strarray *array,
        git_repository *repo,
        unsigned int list_flags)
index 5dc35010328dee6df239823afd5a0bb854f2a93c..f074a34789abfa80a8750a3d59f4cd6d7e78bed2 100644 (file)
@@ -91,7 +91,7 @@ static int store_refs(transport_local *t)
 
        assert(t);
 
-       if (git_reference_listall(&ref_names, t->repo, GIT_REF_LISTALL) < 0 ||
+       if (git_reference_list(&ref_names, t->repo, GIT_REF_LISTALL) < 0 ||
                git_vector_init(&t->refs, (unsigned int)ref_names.count, NULL) < 0)
                goto on_error;
 
index f673bd9bed47a5d6bb746cfbfa10788f7f726bad..2a7b157cae977e0ef51ea18a8ec9a6db3a0f843a 100644 (file)
@@ -25,7 +25,7 @@ void test_refs_list__all(void)
    // try to list all the references in our test repo
        git_strarray ref_list;
 
-       cl_git_pass(git_reference_listall(&ref_list, g_repo, GIT_REF_LISTALL));
+       cl_git_pass(git_reference_list(&ref_list, g_repo, GIT_REF_LISTALL));
 
        /*{
                unsigned short i;
@@ -46,7 +46,7 @@ void test_refs_list__symbolic_only(void)
    // try to list only the symbolic references
        git_strarray ref_list;
 
-       cl_git_pass(git_reference_listall(&ref_list, g_repo, GIT_REF_SYMBOLIC));
+       cl_git_pass(git_reference_list(&ref_list, g_repo, GIT_REF_SYMBOLIC));
        cl_assert(ref_list.count == 0); /* no symrefs in the test repo */
 
        git_strarray_free(&ref_list);
index ced40a26e9ca3b888f38e70270004289ffd7fcaf..7f1de74cc47545e39158ed1ec034abfbd058e8b0 100644 (file)
@@ -9,7 +9,7 @@ static void ensure_no_refname_starts_with_a_forward_slash(const char *path)
        size_t i;
 
        cl_git_pass(git_repository_open(&repo, path));
-       cl_git_pass(git_reference_listall(&ref_list, repo, GIT_REF_LISTALL));
+       cl_git_pass(git_reference_list(&ref_list, repo, GIT_REF_LISTALL));
 
        cl_assert(ref_list.count > 0);