mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: upgrade libgit2 to 1.4.0 (#45)
This commit is contained in:
parent
7a067beeb9
commit
d901d2e13f
16 changed files with 747 additions and 287 deletions
File diff suppressed because it is too large
Load diff
|
@ -143,12 +143,13 @@ int writtenCount(Pointer<git_packbuilder> pb) {
|
|||
return libgit2.git_packbuilder_written(pb);
|
||||
}
|
||||
|
||||
/// Get the packfile's hash.
|
||||
/// Get the unique name for the resulting packfile.
|
||||
///
|
||||
/// A packfile's name is derived from the sorted hashing of all object names.
|
||||
/// This is only correct after the packfile has been written.
|
||||
Pointer<git_oid> hash(Pointer<git_packbuilder> pb) {
|
||||
return libgit2.git_packbuilder_hash(pb);
|
||||
/// The packfile's name is derived from the packfile's content. This is only
|
||||
/// correct after the packfile has been written.
|
||||
String name(Pointer<git_packbuilder> pb) {
|
||||
final result = libgit2.git_packbuilder_name(pb);
|
||||
return result == nullptr ? '' : result.cast<Utf8>().toDartString();
|
||||
}
|
||||
|
||||
/// Set number of threads to spawn.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue