diff options
-rw-r--r-- | LibGit2Sharp.Tests/CommitFixture.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/CommitFixture.cs b/LibGit2Sharp.Tests/CommitFixture.cs index 0b9749b4..5cddec9a 100644 --- a/LibGit2Sharp.Tests/CommitFixture.cs +++ b/LibGit2Sharp.Tests/CommitFixture.cs @@ -290,6 +290,28 @@ namespace LibGit2Sharp.Tests } [Fact] + public void CanEnumerateCommitsUsingGlob() + { + AssertEnumerationOfCommits( + repo => new Filter { Since = repo.Refs.FromGlob("refs/heads/*") }, + new[] + { + "4c062a6", "e90810b", "6dcf9bf", "a4a7dce", "be3563a", "c47800c", "9fd738e", "4a202b3", "41bc8c6", "5001298", "5b5b025", "8496071" + }); + } + + [Fact] + public void CanHideCommitsUsingGlob() + { + AssertEnumerationOfCommits( + repo => new Filter { Since = "refs/heads/packed-test", Until = repo.Refs.FromGlob("*/packed") }, + new[] + { + "4a202b3", "5b5b025", "8496071" + }); + } + + [Fact] public void CanEnumerateCommitsFromAnAnnotatedTag() { CanEnumerateCommitsFromATag(t => t); |