mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
refactor!: change api
This commit is contained in:
parent
3aa322ea59
commit
570e5bad52
2 changed files with 16 additions and 9 deletions
|
@ -217,7 +217,7 @@ void setString(Pointer<git_config> cfg, String name, String value) {
|
|||
}
|
||||
|
||||
/// Iterate over all the config variables.
|
||||
Map<String, dynamic> getEntries(Pointer<git_config> cfg) {
|
||||
Map<String, dynamic> getVariables(Pointer<git_config> cfg) {
|
||||
final iterator = calloc<Pointer<git_config_iterator>>();
|
||||
final entry = calloc<Pointer<git_config_entry>>();
|
||||
libgit2.git_config_iterator_new(iterator, cfg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue