Example #1
0
 /// <exception cref="System.IO.IOException"></exception>
 private IList <DiffEntry> DetectRenames(IList <DiffEntry> files)
 {
     renameDetector.Reset();
     renameDetector.AddAll(files);
     return(renameDetector.Compute(reader, progressMonitor));
 }
        public virtual void TestExactRename_OneRename()
        {
            ObjectId  foo = Blob("foo");
            DiffEntry a   = DiffEntry.Add(PATH_A, foo);
            DiffEntry b   = DiffEntry.Delete(PATH_Q, foo);

            rd.Add(a);
            rd.Add(b);
            IList <DiffEntry> entries = rd.Compute();

            NUnit.Framework.Assert.AreEqual(1, entries.Count);
            AssertRename(b, a, 100, entries[0]);
        }