示例#1
0
		/// <summary>Construct a Tree with a known SHA-1 under another tree.</summary>
		/// <remarks>
		/// Construct a Tree with a known SHA-1 under another tree. Data is not yet
		/// specified and will have to be loaded on demand.
		/// </remarks>
		/// <param name="parent"></param>
		/// <param name="id"></param>
		/// <param name="nameUTF8"></param>
		protected internal Tree(NGit.Tree parent, ObjectId id, byte[] nameUTF8) : base(parent
			, id, nameUTF8)
		{
			db = parent.GetRepository();
		}
示例#2
0
		/// <summary>Construct a new Tree under another Tree</summary>
		/// <param name="parent"></param>
		/// <param name="nameUTF8"></param>
		public Tree(NGit.Tree parent, byte[] nameUTF8) : base(parent, null, nameUTF8)
		{
			db = parent.GetRepository();
			contents = EMPTY_TREE;
		}