GitSharp.Core.Repository.getIndexFile C# (CSharp) Method

getIndexFile() public method

public getIndexFile ( ) : FileInfo
return FileInfo
        public FileInfo getIndexFile()
        {
            return indexFile;
        }

Usage Example

Example #1
0
        /// <summary>
        /// Encoding that is used for encoding / decoding filenames only
        /// </summary>
        //public Encoding FilenameEncoding
        //{
        //   get;
        //   set;
        //}

        ///	<summary>
        /// Construct a Git index representation.
        /// </summary>
        ///	<param name="db"> </param>
        public GitIndex(Repository db)
        {
            //FilenameEncoding = Constants.CHARSET; //  defaults to UTF8 actually
            _entries   = new SortedDictionary <byte[], Entry>(new ByteVectorComparer());
            Repository = db;
            _cacheFile = db.getIndexFile();
        }