mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 20:59:08 -04:00
docs: update docs for bindings and api
This commit is contained in:
parent
a3213a88a2
commit
9d61584165
52 changed files with 352 additions and 209 deletions
|
@ -5,13 +5,10 @@ import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
|
|||
import 'package:libgit2dart/src/error.dart';
|
||||
import 'package:libgit2dart/src/util.dart';
|
||||
|
||||
/// Describe a commit.
|
||||
/// Describe a commit. The returned describe result must be freed with [free].
|
||||
///
|
||||
/// Perform the describe operation on the given committish object.
|
||||
///
|
||||
/// Returned object should be freed with `describeResultFree()` once no longer
|
||||
/// needed.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
Pointer<git_describe_result> commit({
|
||||
required Pointer<git_commit> commitPointer,
|
||||
|
@ -44,7 +41,7 @@ Pointer<git_describe_result> commit({
|
|||
}
|
||||
}
|
||||
|
||||
/// Describe a commit.
|
||||
/// Describe a commit. The returned describe result must be freed with [free].
|
||||
///
|
||||
/// Perform the describe operation on the current commit and the worktree.
|
||||
/// After peforming describe on HEAD, a status is run and the description is
|
||||
|
@ -118,7 +115,7 @@ String format({
|
|||
}
|
||||
|
||||
/// Free the describe result.
|
||||
void describeResultFree(Pointer<git_describe_result> result) {
|
||||
void free(Pointer<git_describe_result> result) {
|
||||
libgit2.git_describe_result_free(result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue