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
f4fc9fdb
Commit
f4fc9fdb
authored
Nov 29, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup nitpicky things
parent
bde336ea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
include/git2/refs.h
+1
-1
include/git2/strarray.h
+2
-3
tests-clar/network/fetch.c
+1
-0
tests-clar/refs/branches/tracking.c
+2
-1
No files found.
include/git2/refs.h
View file @
f4fc9fdb
...
...
@@ -381,7 +381,7 @@ GIT_EXTERN(int) git_reference_foreach_glob(
git_repository
*
repo
,
const
char
*
glob
,
unsigned
int
list_flags
,
int
(
*
callback
)(
const
char
*
reference_name
,
void
*
payload
)
,
git_reference_foreach_cb
callback
,
void
*
payload
);
/**
...
...
include/git2/strarray.h
View file @
f4fc9fdb
...
...
@@ -19,11 +19,10 @@
GIT_BEGIN_DECL
/** Array of strings */
typedef
struct
_git_strarray
git_strarray
;
struct
_git_strarray
{
typedef
struct
git_strarray
{
char
**
strings
;
size_t
count
;
};
}
git_strarray
;
/**
* Close a string array object
...
...
tests-clar/network/fetch.c
View file @
f4fc9fdb
...
...
@@ -78,6 +78,7 @@ void test_network_fetch__no_tags_http(void)
static
void
transferProgressCallback
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
{
GIT_UNUSED
(
stats
);
bool
*
invoked
=
(
bool
*
)
payload
;
*
invoked
=
true
;
}
...
...
tests-clar/refs/branches/tracking.c
View file @
f4fc9fdb
...
...
@@ -65,7 +65,8 @@ static void assert_merge_and_or_remote_key_missing(git_repository *repository, g
{
git_reference
*
branch
;
cl_git_pass
(
git_branch_create
(
&
branch
,
repository
,
entry_name
,
target
,
0
));
cl_assert_equal_i
(
GIT_OBJ_COMMIT
,
git_object_type
(
target
));
cl_git_pass
(
git_branch_create
(
&
branch
,
repository
,
entry_name
,
(
git_commit
*
)
target
,
0
));
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_branch_tracking
(
&
tracking
,
branch
));
...
...
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