feat(repository): add ability to pass credentials in callbacks argument

This commit is contained in:
Aleksey Kulikov 2021-09-29 18:54:29 +03:00
parent 299d1a17e7
commit 4c7a096fe3
31 changed files with 1340 additions and 308 deletions

18
lib/src/features.dart Normal file
View file

@ -0,0 +1,18 @@
import 'util.dart';
import 'git_types.dart';
class Features {
/// Returns list of compile time options for libgit2.
static List<GitFeature> get list {
var result = <GitFeature>[];
final featuresInt = libgit2.git_libgit2_features();
for (var flag in GitFeature.values) {
if (featuresInt & flag.value == flag.value) {
result.add(flag);
}
}
return result;
}
}