Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
@@mkdir -p $(INSTALL_PATH)/lib
@@mkdir -p $(INSTALL_PATH)/vendor

@@cp -f $(BASE)/build/default/nodegit.node $(INSTALL_PATH)/build/default/nodegit.node
@@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/default/nodegit.node
@@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
@@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
@@cp -f $(BASE)/package.json $(INSTALL_PATH)/
Expand Down
2 changes: 1 addition & 1 deletion 2 include/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class GitBlob : public ObjectWrap {
* Returns:
* completion code integer
*/
static int EIO_Lookup(eio_req* req);
static void EIO_Lookup(eio_req* req);
/**
* Function: EIO_AfterLookup
*
Expand Down
5 changes: 2 additions & 3 deletions 5 include/commit.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand All @@ -23,7 +22,7 @@ using namespace v8;
/**
* Class wrapper for libgit2 git_commit
*/
class GitCommit : public EventEmitter {
class GitCommit : public ObjectWrap {
public:
/**
* v8::FunctionTemplate used to create Node.js constructor
Expand Down Expand Up @@ -59,7 +58,7 @@ class GitCommit : public EventEmitter {
static Handle<Value> New(const Arguments& args);

static Handle<Value> Lookup(const Arguments& args);
static int EIO_Lookup(eio_req *req);
static void EIO_Lookup(eio_req *req);
static int EIO_AfterLookup(eio_req *req);

static Handle<Value> Close(const Arguments& args);
Expand Down
1 change: 0 additions & 1 deletion 1 include/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define ERROR_H

#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
1 change: 0 additions & 1 deletion 1 include/index.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define INDEX_H

#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
3 changes: 1 addition & 2 deletions 3 include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand All @@ -19,7 +18,7 @@ using namespace node;
/**
* Class wrapper for libgit2 git_object
*/
class GitObject : public EventEmitter {
class GitObject : public ObjectWrap {
public:
/**
* v8::FunctionTemplate used to create Node.js constructor
Expand Down
1 change: 0 additions & 1 deletion 1 include/odb.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define ODB_H

#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
1 change: 0 additions & 1 deletion 1 include/odb_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define ODB_BACKEND_H

#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
3 changes: 1 addition & 2 deletions 3 include/oid.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

using namespace node;
using namespace v8;

class GitOid : public EventEmitter {
class GitOid : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize (Handle<v8::Object> target);
Expand Down
5 changes: 2 additions & 3 deletions 5 include/reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>
#include <string>

#include "../vendor/libgit2/include/git2.h"
Expand All @@ -18,7 +17,7 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
using namespace node;
using namespace v8;

class GitReference : public EventEmitter {
class GitReference : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize(Handle<v8::Object> target);
Expand All @@ -33,7 +32,7 @@ class GitReference : public EventEmitter {
static Handle<Value> New(const Arguments& args);

static Handle<Value> Lookup(const Arguments& args);
static int EIO_Lookup(eio_req* req);
static void EIO_Lookup(eio_req* req);
static int EIO_AfterLookup(eio_req* req);

static Handle<Value> Oid(const Arguments& args);
Expand Down
7 changes: 3 additions & 4 deletions 7 include/repo.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>
#include <string>

#include "../vendor/libgit2/include/git2.h"
Expand All @@ -17,7 +16,7 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
using namespace node;
using namespace v8;

class GitRepo : public EventEmitter {
class GitRepo : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize(Handle<v8::Object> target);
Expand All @@ -43,7 +42,7 @@ class GitRepo : public EventEmitter {
static Handle<Value> New(const Arguments& args);

static Handle<Value> Open(const Arguments& args);
static int EIO_Open(eio_req* req);
static void EIO_Open(eio_req* req);
static int EIO_AfterOpen(eio_req* req);

static Handle<Value> Lookup(const Arguments& args);
Expand All @@ -53,7 +52,7 @@ class GitRepo : public EventEmitter {
static Handle<Value> Free(const Arguments& args);

static Handle<Value> Init(const Arguments& args);
static int EIO_Init(eio_req* req);
static void EIO_Init(eio_req* req);
static int EIO_AfterInit(eio_req* req);

private:
Expand Down
5 changes: 2 additions & 3 deletions 5 include/revwalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand All @@ -17,7 +16,7 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
using namespace node;
using namespace v8;

class GitRevWalk : public EventEmitter {
class GitRevWalk : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize(Handle<v8::Object> target);
Expand All @@ -42,7 +41,7 @@ class GitRevWalk : public EventEmitter {
static Handle<Value> Hide(const Arguments& args);

static Handle<Value> Next(const Arguments& args);
static int EIO_Next(eio_req* req);
static void EIO_Next(eio_req* req);
static int EIO_AfterNext(eio_req* req);

static Handle<Value> Sorting(const Arguments& args);
Expand Down
3 changes: 1 addition & 2 deletions 3 include/sig.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand All @@ -16,7 +15,7 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
using namespace v8;
using namespace node;

class GitSig : public EventEmitter {
class GitSig : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize(Handle<v8::Object> target);
Expand Down
1 change: 0 additions & 1 deletion 1 include/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define TAG_H

#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
7 changes: 3 additions & 4 deletions 7 include/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>
#include <string>

#include "../vendor/libgit2/include/git2.h"
Expand All @@ -21,7 +20,7 @@ using namespace node;
/**
* Class wrapper for libgit2 git_tree
*/
class GitTree : public EventEmitter {
class GitTree : public ObjectWrap {
public:
/**
* v8::FunctionTemplate used to create Node.js constructor
Expand Down Expand Up @@ -98,10 +97,10 @@ class GitTree : public EventEmitter {
static int EIO_AfterLookup(eio_req *req);
static Handle<Value> EntryCount(const Arguments& args);
static Handle<Value> EntryByIndex(const Arguments& args);
static int EIO_EntryByIndex(eio_req *req);
static void EIO_EntryByIndex(eio_req *req);
static int EIO_AfterEntryByIndex(eio_req *req);
static Handle<Value> EntryByName(const Arguments& args);
static int EIO_EntryByName(eio_req *req);
static void EIO_EntryByName(eio_req *req);
static int EIO_AfterEntryByName(eio_req *req);
static Handle<Value> SortEntries(const Arguments& args);
static Handle<Value> ClearEntries(const Arguments& args);
Expand Down
3 changes: 1 addition & 2 deletions 3 include/tree_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand All @@ -22,7 +21,7 @@ using namespace node;
/**
* Class wrapper for libgit2 git_tree_entry
*/
class GitTreeEntry : EventEmitter {
class GitTreeEntry : ObjectWrap {
public:
/**
* v8::FunctionTemplate used to create Node.js constructor
Expand Down
1 change: 0 additions & 1 deletion 1 src/base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
3 changes: 1 addition & 2 deletions 3 src/blob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,12 @@ Handle<Value> GitBlob::Lookup(const Arguments& args) {
return scope.Close( Undefined() );
}

int GitBlob::EIO_Lookup(eio_req* req) {
void GitBlob::EIO_Lookup(eio_req* req) {
lookup_request* ar = static_cast<lookup_request* >(req->data);

git_oid oid = ar->oid->GetValue();
ar->err = ar->blob->Lookup(ar->repo->GetValue(), &oid);

return 0;
}

int GitBlob::EIO_AfterLookup(eio_req* req) {
Expand Down
4 changes: 1 addition & 3 deletions 4 src/commit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <string.h>
#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down Expand Up @@ -147,13 +146,12 @@ Handle<Value> GitCommit::Lookup(const Arguments& args) {
return scope.Close( Undefined() );
}

int GitCommit::EIO_Lookup(eio_req *req) {
void GitCommit::EIO_Lookup(eio_req *req) {
lookup_request *ar = static_cast<lookup_request *>(req->data);

git_oid oid = ar->oid->GetValue();
ar->err = ar->commit->Lookup(ar->repo->GetValue(), &oid);

return 0;
}

int GitCommit::EIO_AfterLookup(eio_req *req) {
Expand Down
1 change: 0 additions & 1 deletion 1 src/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
1 change: 0 additions & 1 deletion 1 src/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
1 change: 0 additions & 1 deletion 1 src/oid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>

#include "../vendor/libgit2/include/git2.h"

Expand Down
4 changes: 1 addition & 3 deletions 4 src/reference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>
#include <string>

#include "../vendor/libgit2/include/git2.h"
Expand Down Expand Up @@ -94,14 +93,13 @@ Handle<Value> GitReference::Lookup(const Arguments& args) {
return scope.Close( Undefined() );
}

int GitReference::EIO_Lookup(eio_req *req) {
void GitReference::EIO_Lookup(eio_req *req) {
lookup_request *ar = static_cast<lookup_request *>(req->data);

git_repository* repo = ar->repo->GetValue();

ar->err = ar->ref->Lookup(repo, ar->name.c_str());

return 0;
}

int GitReference::EIO_AfterLookup(eio_req *req) {
Expand Down
7 changes: 2 additions & 5 deletions 7 src/repo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>

#include <v8.h>
#include <node.h>
#include <node_events.h>
#include <string>

#include "../vendor/libgit2/include/git2.h"
Expand Down Expand Up @@ -101,12 +100,11 @@ Handle<Value> GitRepo::Open(const Arguments& args) {
return scope.Close( Undefined() );
}

int GitRepo::EIO_Open(eio_req *req) {
void GitRepo::EIO_Open(eio_req *req) {
open_request *ar = static_cast<open_request *>(req->data);

ar->err = ar->repo->Open(ar->path.c_str());

return 0;
}

int GitRepo::EIO_AfterOpen(eio_req *req) {
Expand Down Expand Up @@ -258,12 +256,11 @@ Handle<Value> GitRepo::Init(const Arguments& args) {
return scope.Close( Undefined() );
}

int GitRepo::EIO_Init(eio_req *req) {
void GitRepo::EIO_Init(eio_req *req) {
init_request *ar = static_cast<init_request *>(req->data);

ar->err = ar->repo->Init(ar->path.c_str(), ar->is_bare);

return 0;
}

int GitRepo::EIO_AfterInit(eio_req *req) {
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.