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
d9da4cca
Commit
d9da4cca
authored
Feb 05, 2012
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document {get,set}_multivar
parent
3005855f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
include/git2/config.h
+15
-2
No files found.
include/git2/config.h
View file @
d9da4cca
...
@@ -208,8 +208,16 @@ GIT_EXTERN(int) git_config_get_bool(git_config *cfg, const char *name, int *out)
...
@@ -208,8 +208,16 @@ GIT_EXTERN(int) git_config_get_bool(git_config *cfg, const char *name, int *out)
GIT_EXTERN
(
int
)
git_config_get_string
(
git_config
*
cfg
,
const
char
*
name
,
const
char
**
out
);
GIT_EXTERN
(
int
)
git_config_get_string
(
git_config
*
cfg
,
const
char
*
name
,
const
char
**
out
);
/**
/**
* Get each value of a multivar. The callback will be called on each
* Get each value of a multivar.
* variable found
*
* The callback will be called on each variable found
*
* @param cfg where to look for the variable
* @param name the variable's name
* @param regexp regular expression to filter which variables we're
* interested in. Use NULL to indicate all
* @param fn the function to be called on each value of the variable
* @param data opaque pointer to pass to the callback
*/
*/
GIT_EXTERN
(
int
)
git_config_get_multivar
(
git_config
*
cfg
,
const
char
*
name
,
const
char
*
regexp
,
int
(
*
fn
)(
const
char
*
,
void
*
),
void
*
data
);
GIT_EXTERN
(
int
)
git_config_get_multivar
(
git_config
*
cfg
,
const
char
*
name
,
const
char
*
regexp
,
int
(
*
fn
)(
const
char
*
,
void
*
),
void
*
data
);
...
@@ -259,6 +267,11 @@ GIT_EXTERN(int) git_config_set_string(git_config *cfg, const char *name, const c
...
@@ -259,6 +267,11 @@ GIT_EXTERN(int) git_config_set_string(git_config *cfg, const char *name, const c
/**
/**
* Set a multivar
* Set a multivar
*
* @param cfg where to look for the variable
* @param name the variable's name
* @param regexp a regular expression to indicate which values to replace
* @param value the new value.
*/
*/
GIT_EXTERN
(
int
)
git_config_set_multivar
(
git_config
*
cfg
,
const
char
*
name
,
const
char
*
regexp
,
const
char
*
value
);
GIT_EXTERN
(
int
)
git_config_set_multivar
(
git_config
*
cfg
,
const
char
*
name
,
const
char
*
regexp
,
const
char
*
value
);
...
...
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