GetAllBranchesWhichContainGivenCommit() public method

Gets branches which contain the given commit. If both local and remote branches are requested, remote branches are prefixed with "remotes/" (as returned by git branch -a)
public GetAllBranchesWhichContainGivenCommit ( string sha1, bool getLocal, bool getRemote ) : IEnumerable
sha1 string The sha1.
getLocal bool Pass true to include local branches
getRemote bool Pass true to include remote branches
return IEnumerable
        public void GetAllBranchesWhichContainGivenCommitTestReturnsEmptyList()
        {
            var module = new GitModule("");
            var actualResult = module.GetAllBranchesWhichContainGivenCommit("fakesha1", false, false);

            Assert.IsNotNull(actualResult);
            Assert.IsTrue(!actualResult.Any());
        }