GitSharp.Core.DirectoryCache.DirCache.getEntry C# (CSharp) Method

getEntry() public method

Get a specific entry.
public getEntry ( int i ) : DirCacheEntry
i int /// position of the entry to get. ///
return DirCacheEntry
		public DirCacheEntry getEntry(int i)
		{
			return _sortedEntries[i];
		}

Same methods

DirCache::getEntry ( string path ) : DirCacheEntry

Usage Example

        public void testReadIndex_LsFiles()
        {
            List<CGitIndexRecord> ls = ReadLsFiles();
            var dc = new DirCache(_index);
            Assert.AreEqual(0, dc.getEntryCount());
            dc.read();
            Assert.AreEqual(ls.Count, dc.getEntryCount());

            int i = 0;
            foreach (var val in ls)
            {
                AssertAreEqual(val, dc.getEntry(i));
                i++;
            }
        }
All Usage Examples Of GitSharp.Core.DirectoryCache.DirCache::getEntry