Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
4fbd1c00
Commit
4fbd1c00
authored
May 17, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs: git_reference_listall -> git_reference_list
parent
fe3bcf7d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
include/git2/refs.h
+1
-1
src/fetch.c
+1
-1
src/refs.c
+1
-1
src/transports/local.c
+1
-1
tests-clar/refs/list.c
+2
-2
tests-clar/refs/listall.c
+1
-1
No files found.
include/git2/refs.h
View file @
4fbd1c00
...
...
@@ -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_list
all
(
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
);
/**
...
...
src/fetch.c
View file @
4fbd1c00
...
...
@@ -165,7 +165,7 @@ int git_fetch_setup_walk(git_revwalk **out, git_repository *repo)
unsigned
int
i
;
git_reference
*
ref
;
if
(
git_reference_list
all
(
&
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
)
...
...
src/refs.c
View file @
4fbd1c00
...
...
@@ -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_list
all
(
int
git_reference_list
(
git_strarray
*
array
,
git_repository
*
repo
,
unsigned
int
list_flags
)
...
...
src/transports/local.c
View file @
4fbd1c00
...
...
@@ -91,7 +91,7 @@ static int store_refs(transport_local *t)
assert
(
t
);
if
(
git_reference_list
all
(
&
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
;
...
...
tests-clar/refs/list.c
View file @
4fbd1c00
...
...
@@ -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_list
all
(
&
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_list
all
(
&
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
);
...
...
tests-clar/refs/listall.c
View file @
4fbd1c00
...
...
@@ -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_list
all
(
&
ref_list
,
repo
,
GIT_REF_LISTALL
));
cl_git_pass
(
git_reference_list
(
&
ref_list
,
repo
,
GIT_REF_LISTALL
));
cl_assert
(
ref_list
.
count
>
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment