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

OpenBlob() public method

public OpenBlob ( ObjectId id ) : ObjectLoader
id ObjectId SHA'1 of a blob
return ObjectLoader
        public ObjectLoader OpenBlob(ObjectId id)
        {
            return OpenObject(id);
        }

Usage Example

Example #1
0
 ///	<summary> * The constructor from object identifier
 ///	</summary>
 ///	<param name="base">the base configuration file </param>
 ///	<param name="r">the repository</param>
 /// <param name="objectid">the object identifier</param>
 /// <exception cref="IOException">
 /// the blob cannot be read from the repository. </exception>
 /// <exception cref="ConfigInvalidException">
 /// the blob is not a valid configuration format.
 /// </exception> 
 public BlobBasedConfig(Config @base, Repository r, ObjectId objectid)
     : base(@base)
 {
     ObjectLoader loader = r.OpenBlob(objectid);
     if (loader == null)
     {
         throw new IOException("Blob not found: " + objectid);
     }
     fromText(RawParseUtils.decode(loader.Bytes));
 }
All Usage Examples Of GitSharp.Core.Repository::OpenBlob