mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 20:59:08 -04:00
feat(repository): add api method for revparse_single
This commit is contained in:
parent
2e0486c641
commit
3b13646b1b
5 changed files with 43 additions and 5 deletions
6
lib/src/bindings/object.dart
Normal file
6
lib/src/bindings/object.dart
Normal file
|
@ -0,0 +1,6 @@
|
|||
import 'dart:ffi';
|
||||
import 'libgit2_bindings.dart';
|
||||
import '../util.dart';
|
||||
|
||||
/// Get the object type of an object.
|
||||
int type(Pointer<git_object> obj) => libgit2.git_object_type(obj);
|
|
@ -511,6 +511,8 @@ Pointer<git_repository> wrapODB(Pointer<git_odb> odb) {
|
|||
}
|
||||
|
||||
/// Find a single object, as specified by a [spec] string.
|
||||
/// See `man gitrevisions`, or https://git-scm.com/docs/git-rev-parse.html#_specifying_revisions
|
||||
/// for information on the syntax accepted.
|
||||
///
|
||||
/// The returned object should be released when no longer needed.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue