mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
feat(signature): add bindings and api for default signature
This commit is contained in:
parent
72107dea60
commit
3b883c49e3
5 changed files with 55 additions and 9 deletions
|
@ -361,6 +361,14 @@ class Repository {
|
|||
}
|
||||
}
|
||||
|
||||
/// Creates a new action signature with default user and now timestamp.
|
||||
///
|
||||
/// This looks up the user.name and user.email from the configuration and uses the
|
||||
/// current time as the timestamp, and creates a new signature based on that information.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
Signature get defaultSignature => Signature.defaultSignature(this);
|
||||
|
||||
/// Returns the list of commits starting from provided [sha] hex string.
|
||||
///
|
||||
/// If [sorting] isn't provided default will be used (reverse chronological order, like in git).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue