Пример #1
0
        internal Commit(ObjectStorage storage, ObjectReader reader, string id)
            : base(id)
        {
            _storage = storage;
            _reader = reader;

            this._parents = new List<Commit>();
        }
Пример #2
0
 internal Tag(ObjectStorage storage, ObjectReader reader, string id)
     : base(id)
 {
     _storage = storage;
     _loader = () => LoadFromObjectReader(reader);
 }
Пример #3
0
 private void LoadFromObjectReader(ObjectReader reader)
 {
     reader.Load(stream => LoadFromReader(new StreamReader(stream), reader.Size));
 }