mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-06 21:19:06 -04:00
feat(repository): add ability to pass credentials in callbacks argument
This commit is contained in:
parent
299d1a17e7
commit
4c7a096fe3
31 changed files with 1340 additions and 308 deletions
18
lib/src/features.dart
Normal file
18
lib/src/features.dart
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue