class GitBlob : public ObjectWrap
Wrapper for libgit2 git_blob.
GitBlob | Wrapper for libgit2 git_blob. |
Variables | |
constructor_template | Used to create Node.js constructor. |
Functions | |
Initialize | Used to intialize the EventEmitter from Node.js |
Lookup | Lookup a blob object from a repository. |
RawContent | Get a read-only buffer with the raw content of a blob. |
RawSize | Lookup a blob object from a repository. |
Close | Free a blob object. |
CreateFromFile | Read a file into the ODB. |
CreateFromBuffer | Read a buffer into the ODB. |
GitBlob | |
New | args v8::Arguments function call |
Lookup | args v8::Arguments function call |
EIO_Lookup | |
EIO_AfterLookup | |
RawContent | args v8::Arguments function call |
RawSize | args v8::Arguments function call |
Close | args v8::Arguments function call |
CreateFromFile | args v8::Arguments function call |
CreateFromBuffer | args v8::Arguments function call |
Variables | |
blob | Internal reference to git_blob object |
lookup_request | Contains references to the current blob, repo, and oid for a commit lookup, also contains references to an error code post lookup, and a callback function to execute. |
Wrapper for libgit2 git_blob.
class GitBlob : public ObjectWrap
Used to create Node.js constructor.
static v8::Persistent<v8::FunctionTemplate> constructor_template
Used to intialize the EventEmitter from Node.js
static void Initialize( v8:: Handle<v8::Object> target )
Lookup a blob object from a repository.
int Lookup( git_repository * repo, const git_oid * id )
Get a read-only buffer with the raw content of a blob.
const void* RawContent()
Lookup a blob object from a repository.
int RawSize()
Free a blob object.
void Close()
Read a file into the ODB.
int CreateFromFile( git_oid * oid, git_repository * repo, const char * path )
Read a buffer into the ODB.
int CreateFromBuffer( git_oid * oid, git_repository * repo, const void * buffer, size_t len )
GitBlob()
args v8::Arguments function call
static v8::Handle<v8::Value> New( const v8:: Arguments & args )
static int EIO_Lookup( eio_req * req )
static int EIO_AfterLookup( eio_req * req )
Internal reference to git_blob object
git_blob* blob
Contains references to the current blob, repo, and oid for a commit lookup, also contains references to an error code post lookup, and a callback function to execute.
struct lookup_request