Skip to content

Commit e580b7b

Browse files
committed
Merge pull request nodegit#34 from moneal/0.0.6
Node 0.6x fixes by a beautiful man
2 parents 101195a + 7193584 commit e580b7b

30 files changed

Lines changed: 31 additions & 65 deletions

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NODE_JS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
22
NODE_BLD = node-waf
3-
NODE_LIB_PATH = ~/.node_libraries
3+
NODE_LIB_PATH = ~/.node_modules
44

55
BASE = .
66
INSTALL_PATH = $(NODE_LIB_PATH)/nodegit
@@ -22,11 +22,11 @@ debug:
2222

2323
install:
2424
@@mkdir -p $(INSTALL_PATH)
25-
@@mkdir -p $(INSTALL_PATH)/build/default
25+
@@mkdir -p $(INSTALL_PATH)/build/Release
2626
@@mkdir -p $(INSTALL_PATH)/lib
2727
@@mkdir -p $(INSTALL_PATH)/vendor
2828

29-
@@cp -f $(BASE)/build/default/nodegit.node $(INSTALL_PATH)/build/default/nodegit.node
29+
@@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/Release/nodegit.node
3030
@@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
3131
@@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
3232
@@cp -f $(BASE)/package.json $(INSTALL_PATH)/

include/blob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class GitBlob : public ObjectWrap {
137137
* Returns:
138138
* completion code integer
139139
*/
140-
static int EIO_Lookup(eio_req* req);
140+
static void EIO_Lookup(eio_req* req);
141141
/**
142142
* Function: EIO_AfterLookup
143143
*

include/commit.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <v8.h>
1010
#include <node.h>
11-
#include <node_events.h>
1211

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

@@ -23,7 +22,7 @@ using namespace v8;
2322
/**
2423
* Class wrapper for libgit2 git_commit
2524
*/
26-
class GitCommit : public EventEmitter {
25+
class GitCommit : public ObjectWrap {
2726
public:
2827
/**
2928
* v8::FunctionTemplate used to create Node.js constructor
@@ -59,7 +58,7 @@ class GitCommit : public EventEmitter {
5958
static Handle<Value> New(const Arguments& args);
6059

6160
static Handle<Value> Lookup(const Arguments& args);
62-
static int EIO_Lookup(eio_req *req);
61+
static void EIO_Lookup(eio_req *req);
6362
static int EIO_AfterLookup(eio_req *req);
6463

6564
static Handle<Value> Close(const Arguments& args);

include/error.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define ERROR_H
88

99
#include <node.h>
10-
#include <node_events.h>
1110

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

include/index.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define INDEX_H
88

99
#include <node.h>
10-
#include <node_events.h>
1110

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

include/object.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
77

88
#include <v8.h>
99
#include <node.h>
10-
#include <node_events.h>
1110

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

@@ -19,7 +18,7 @@ using namespace node;
1918
/**
2019
* Class wrapper for libgit2 git_object
2120
*/
22-
class GitObject : public EventEmitter {
21+
class GitObject : public ObjectWrap {
2322
public:
2423
/**
2524
* v8::FunctionTemplate used to create Node.js constructor

include/odb.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define ODB_H
88

99
#include <node.h>
10-
#include <node_events.h>
1110

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

include/odb_backend.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define ODB_BACKEND_H
88

99
#include <node.h>
10-
#include <node_events.h>
1110

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

include/oid.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
77

88
#include <v8.h>
99
#include <node.h>
10-
#include <node_events.h>
1110

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

1413
using namespace node;
1514
using namespace v8;
1615

17-
class GitOid : public EventEmitter {
16+
class GitOid : public ObjectWrap {
1817
public:
1918
static Persistent<FunctionTemplate> constructor_template;
2019
static void Initialize (Handle<v8::Object> target);

include/reference.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
77

88
#include <v8.h>
99
#include <node.h>
10-
#include <node_events.h>
1110
#include <string>
1211

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

21-
class GitReference : public EventEmitter {
20+
class GitReference : public ObjectWrap {
2221
public:
2322
static Persistent<FunctionTemplate> constructor_template;
2423
static void Initialize(Handle<v8::Object> target);
@@ -33,7 +32,7 @@ class GitReference : public EventEmitter {
3332
static Handle<Value> New(const Arguments& args);
3433

3534
static Handle<Value> Lookup(const Arguments& args);
36-
static int EIO_Lookup(eio_req* req);
35+
static void EIO_Lookup(eio_req* req);
3736
static int EIO_AfterLookup(eio_req* req);
3837

3938
static Handle<Value> Oid(const Arguments& args);

0 commit comments

Comments
 (0)