mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
docs: improve api documentation
This commit is contained in:
parent
199dce111a
commit
a24070c44c
32 changed files with 1008 additions and 518 deletions
|
@ -54,8 +54,7 @@ void main() {
|
|||
|
||||
repo.createStash(
|
||||
stasher: stasher,
|
||||
includeUntracked: true,
|
||||
includeIgnored: true,
|
||||
flags: {GitStash.includeUntracked, GitStash.includeIgnored},
|
||||
);
|
||||
expect(repo.status.isEmpty, true);
|
||||
expect(swpPath.existsSync(), false);
|
||||
|
@ -72,7 +71,7 @@ void main() {
|
|||
final index = repo.index;
|
||||
index.add('file');
|
||||
|
||||
repo.createStash(stasher: stasher, keepIndex: true);
|
||||
repo.createStash(stasher: stasher, flags: {GitStash.keepIndex});
|
||||
expect(repo.status.isEmpty, false);
|
||||
expect(repo.stashes.length, 1);
|
||||
|
||||
|
@ -111,7 +110,7 @@ void main() {
|
|||
index.add('stash.this');
|
||||
expect(index.find('stash.this'), true);
|
||||
|
||||
repo.createStash(stasher: stasher, includeUntracked: true);
|
||||
repo.createStash(stasher: stasher, flags: {GitStash.includeUntracked});
|
||||
expect(repo.status.isEmpty, true);
|
||||
expect(index.find('stash.this'), false);
|
||||
|
||||
|
@ -204,7 +203,7 @@ void main() {
|
|||
index.add('stash.this');
|
||||
expect(index.find('stash.this'), true);
|
||||
|
||||
repo.createStash(stasher: stasher, includeUntracked: true);
|
||||
repo.createStash(stasher: stasher, flags: {GitStash.includeUntracked});
|
||||
expect(repo.status.isEmpty, true);
|
||||
expect(index.find('stash.this'), false);
|
||||
|
||||
|
@ -252,7 +251,7 @@ void main() {
|
|||
|
||||
test('returns string representation of Stash object', () {
|
||||
File('${tmpDir.path}/stash.this').writeAsStringSync('stash');
|
||||
repo.createStash(stasher: stasher, includeUntracked: true);
|
||||
repo.createStash(stasher: stasher, flags: {GitStash.includeUntracked});
|
||||
expect(repo.stashes[0].toString(), contains('Stash{'));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue