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
0c9a5565
Commit
0c9a5565
authored
May 11, 2012
by
Sascha Cunz
Committed by
Vicent Martí
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing GIT_EXTERN declarations
parent
546ca939
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
include/git2/oid.h
+3
-3
include/git2/refspec.h
+4
-4
include/git2/tree.h
+2
-2
No files found.
include/git2/oid.h
View file @
0c9a5565
...
...
@@ -183,7 +183,7 @@ typedef struct git_oid_shorten git_oid_shorten;
* be unique.
* @return a `git_oid_shorten` instance, NULL if OOM
*/
git_oid_shorten
*
git_oid_shorten_new
(
size_t
min_length
);
GIT_EXTERN
(
git_oid_shorten
*
)
git_oid_shorten_new
(
size_t
min_length
);
/**
* Add a new OID to set of shortened OIDs and calculate
...
...
@@ -209,14 +209,14 @@ git_oid_shorten *git_oid_shorten_new(size_t min_length);
* added so far to the set; or an error code (<0) if an
* error occurs.
*/
int
git_oid_shorten_add
(
git_oid_shorten
*
os
,
const
char
*
text_oid
);
GIT_EXTERN
(
int
)
git_oid_shorten_add
(
git_oid_shorten
*
os
,
const
char
*
text_oid
);
/**
* Free an OID shortener instance
*
* @param os a `git_oid_shorten` instance
*/
void
git_oid_shorten_free
(
git_oid_shorten
*
os
);
GIT_EXTERN
(
void
)
git_oid_shorten_free
(
git_oid_shorten
*
os
);
/** @} */
GIT_END_DECL
...
...
include/git2/refspec.h
View file @
0c9a5565
...
...
@@ -25,7 +25,7 @@ GIT_BEGIN_DECL
* @param refspec the refspec
* @return the refspec's source specifier
*/
const
char
*
git_refspec_src
(
const
git_refspec
*
refspec
);
GIT_EXTERN
(
const
char
*
)
git_refspec_src
(
const
git_refspec
*
refspec
);
/**
* Get the destination specifier
...
...
@@ -33,7 +33,7 @@ const char *git_refspec_src(const git_refspec *refspec);
* @param refspec the refspec
* @return the refspec's destination specifier
*/
const
char
*
git_refspec_dst
(
const
git_refspec
*
refspec
);
GIT_EXTERN
(
const
char
*
)
git_refspec_dst
(
const
git_refspec
*
refspec
);
/**
* Check if a refspec's source descriptor matches a reference
...
...
@@ -42,7 +42,7 @@ const char *git_refspec_dst(const git_refspec *refspec);
* @param refname the name of the reference to check
* @return 1 if the refspec matches, 0 otherwise
*/
int
git_refspec_src_matches
(
const
git_refspec
*
refspec
,
const
char
*
refname
);
GIT_EXTERN
(
int
)
git_refspec_src_matches
(
const
git_refspec
*
refspec
,
const
char
*
refname
);
/**
* Transform a reference to its target following the refspec's rules
...
...
@@ -53,7 +53,7 @@ int git_refspec_src_matches(const git_refspec *refspec, const char *refname);
* @param name the name of the reference to transform
* @return GIT_SUCCESS, GIT_ESHORTBUFFER or another error
*/
int
git_refspec_transform
(
char
*
out
,
size_t
outlen
,
const
git_refspec
*
spec
,
const
char
*
name
);
GIT_EXTERN
(
int
)
git_refspec_transform
(
char
*
out
,
size_t
outlen
,
const
git_refspec
*
spec
,
const
char
*
name
);
GIT_END_DECL
...
...
include/git2/tree.h
View file @
0c9a5565
...
...
@@ -343,9 +343,9 @@ typedef int (*git_tree_diff_cb)(const git_tree_diff_data *ptr, void *data);
* @param data data to give to the callback
* @return GIT_SUCCESS or an error code
*/
int
git_tree_diff
(
git_tree
*
old
,
git_tree
*
newer
,
git_tree_diff_cb
cb
,
void
*
data
);
GIT_EXTERN
(
int
)
git_tree_diff
(
git_tree
*
old
,
git_tree
*
newer
,
git_tree_diff_cb
cb
,
void
*
data
);
int
git_tree_diff_index_recursive
(
git_tree
*
tree
,
git_index
*
index
,
git_tree_diff_cb
cb
,
void
*
data
);
GIT_EXTERN
(
int
)
git_tree_diff_index_recursive
(
git_tree
*
tree
,
git_index
*
index
,
git_tree_diff_cb
cb
,
void
*
data
);
/** @} */
...
...
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