public IBlame Blame(string revision, string filePath) { using (var blame = git.Blame(revision, filePath)) { return(GitBlame.Parse(blame)); } }
public void Should_keep_revisions_for_each_line() { blame = GitBlame.Parse(blame0.ToStream()); blame.Where(x => x.Value == "a59b276e18f3d4a548caf549e05188cb1bd3a709").Count() .Should().Be(15); blame.Where(x => x.Value == "54988bdad7dc3f09e40752221c144bf470d73aa7").Count() .Should().Be(3); blame.Where(x => x.Value == "54988bdad7dc3f09e40752221c144bf470d73aa7") .Select(x => x.Key) .Should().Have.SameSequenceAs(new int[] { 5, 15, 16 }); }