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
e69ac243
Commit
e69ac243
authored
Apr 19, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: export git_config_[sg]et_long
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent
a99264bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
include/git2/config.h
+20
-0
No files found.
include/git2/config.h
View file @
e69ac243
...
@@ -63,6 +63,16 @@ GIT_EXTERN(void) git_config_free(git_config *cfg);
...
@@ -63,6 +63,16 @@ GIT_EXTERN(void) git_config_free(git_config *cfg);
GIT_EXTERN
(
int
)
git_config_get_int
(
git_config
*
cfg
,
const
char
*
name
,
int
*
out
);
GIT_EXTERN
(
int
)
git_config_get_int
(
git_config
*
cfg
,
const
char
*
name
,
int
*
out
);
/**
/**
* Get the value of a long integer config variable.
*
* @param cfg where to look for the variable
* @param name the variable's name
* @param out pointer to the variable where the value should be stored
* @return GIT_SUCCESS on success; error code otherwise
*/
GIT_EXTERN
(
int
)
git_config_get_long
(
git_config
*
cfg
,
const
char
*
name
,
long
int
*
out
);
/**
* Get the value of a boolean config variable.
* Get the value of a boolean config variable.
*
*
* This function uses the usual C convention of 0 being false and
* This function uses the usual C convention of 0 being false and
...
@@ -99,6 +109,16 @@ GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const c
...
@@ -99,6 +109,16 @@ GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const c
GIT_EXTERN
(
int
)
git_config_set_int
(
git_config
*
cfg
,
const
char
*
name
,
int
value
);
GIT_EXTERN
(
int
)
git_config_set_int
(
git_config
*
cfg
,
const
char
*
name
,
int
value
);
/**
/**
* Set the value of a long integer config variable.
*
* @param cfg where to look for the variable
* @param name the variable's name
* @param out pointer to the variable where the value should be stored
* @return GIT_SUCCESS on success; error code otherwise
*/
GIT_EXTERN
(
int
)
git_config_set_long
(
git_config
*
cfg
,
const
char
*
name
,
long
int
value
);
/**
* Set the value of a boolean config variable.
* Set the value of a boolean config variable.
*
*
* @param cfg where to look for the variable
* @param cfg where to look for the variable
...
...
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