mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-06-23 09:19:26 -04:00
refactor(commit)!: return Tree object instead of Oid for tree getter
This commit is contained in:
parent
458c0bdc71
commit
050c0eb57a
5 changed files with 20 additions and 15 deletions
|
@ -74,7 +74,7 @@ void main() {
|
|||
expect(commit.author, author);
|
||||
expect(commit.committer, commiter);
|
||||
expect(commit.time, 124);
|
||||
expect(commit.tree.sha, tree);
|
||||
expect(commit.tree.id.sha, tree);
|
||||
expect(commit.parents.length, 1);
|
||||
expect(commit.parents[0].sha, mergeCommit);
|
||||
|
||||
|
@ -99,7 +99,7 @@ void main() {
|
|||
expect(commit.author, author);
|
||||
expect(commit.committer, commiter);
|
||||
expect(commit.time, 124);
|
||||
expect(commit.tree.sha, tree);
|
||||
expect(commit.tree.id.sha, tree);
|
||||
expect(commit.parents.length, 0);
|
||||
|
||||
commit.free();
|
||||
|
@ -123,7 +123,7 @@ void main() {
|
|||
expect(commit.author, author);
|
||||
expect(commit.committer, commiter);
|
||||
expect(commit.time, 124);
|
||||
expect(commit.tree.sha, tree);
|
||||
expect(commit.tree.id.sha, tree);
|
||||
expect(commit.parents.length, 2);
|
||||
expect(commit.parents[0].sha, mergeCommit);
|
||||
expect(commit.parents[1].sha, 'fc38877b2552ab554752d9a77e1f48f738cca79b');
|
||||
|
@ -149,7 +149,7 @@ void main() {
|
|||
expect(commit.author, author);
|
||||
expect(commit.committer, commiter);
|
||||
expect(commit.time, 124);
|
||||
expect(commit.tree.sha, tree);
|
||||
expect(commit.tree.id.sha, tree);
|
||||
expect(commit.parents.length, 1);
|
||||
expect(commit.parents[0].sha, mergeCommit);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue