feat(tag)!: add bindings and API methods (#36)

- add binding and API method for git_tag_create_lightweight
- add API method that returns tag target type

BREAKING CHANGE: add specific methods `createAnnotated` and `createLightweight`.
This commit is contained in:
Aleksey Kulikov 2022-01-24 16:42:08 +03:00 committed by GitHub
parent f7dde69de3
commit 3e1ece4e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 366 additions and 42 deletions

View file

@ -74,7 +74,7 @@ void main() {
time: 1234,
);
final commit = repo.lookupCommit(repo['fc38877']);
repo.createTag(
repo.createAnnotatedTag(
tagName: 'test/tag1',
target: repo['f17d0d48'],
targetType: GitObject.commit,