mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(config): add ability to get value(s) of multivar variable
This commit is contained in:
parent
4988b295a5
commit
6a08a7b803
3 changed files with 68 additions and 6 deletions
|
@ -142,6 +142,14 @@ class Config {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns list of values for multivar [key]
|
||||
///
|
||||
/// If [regexp] is present, then the iterator will only iterate over all
|
||||
/// values which match the pattern.
|
||||
List<String> getMultivar(String key, {String? regexp}) {
|
||||
return config.getMultivar(configPointer.value, key, regexp);
|
||||
}
|
||||
|
||||
/// Releases memory allocated for config object.
|
||||
void close() {
|
||||
calloc.free(configPointer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue