| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ API Example Usage | |||
| 40 | 40 | ### Convenience API ### | |
| 41 | 41 | __ Reading a repository and commit data: __ | |
| 42 | 42 | ||
| 43 | - var git = require( 'git' ); | ||
| 43 | + var git = require( 'nodegit' ); | ||
| 44 | 44 | ||
| 45 | 45 | // Read the current repository | |
| 46 | 46 | git.repo( '.git', function( err, path, repo ) { | |
@@ -64,7 +64,7 @@ __ Reading a repository and commit data: __ | |||
| 64 | 64 | ### Raw API ### | |
| 65 | 65 | __ Accomplishing the same thing as above: __ | |
| 66 | 66 | ||
| 67 | - var git = require( 'git' ).raw; | ||
| 67 | + var git = require( 'nodegit' ).raw; | ||
| 68 | 68 | ||
| 69 | 69 | // Create instance of Repo constructor | |
| 70 | 70 | var repo = new git.Repo(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "nodegit", | |
| 3 | 3 | "description": "NodeJS libgit2 asynchronous native bindings", | |
| 4 | - "version": "0.0.1", | ||
| 4 | + "version": "0.0.0", | ||
| 5 | 5 | "homepage": "https://github.com/tbranyen/nodegit", | |
| 6 | 6 | "author": "Tim Branyen <tim@tabdeveloper.com> (http://twitter.com/tbranyen)", | |
| 7 | 7 | "main": "./lib/index.js", | |
@@ -21,6 +21,6 @@ | |||
| 21 | 21 | }, | |
| 22 | 22 | "scripts": { | |
| 23 | 23 | "preinstall": "./configure", | |
| 24 | - "install": "make && make install" | ||
| 24 | + "install": "make" | ||
| 25 | 25 | } | |
| 26 | 26 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,8 @@ def build(bld): | |||
| 28 | 28 | try: os.chdir('vendor/libgit2') | |
| 29 | 29 | except: pass | |
| 30 | 30 | Popen('python waf build-shared', shell=True).wait() | |
| 31 | + | ||
| 32 | + os.chdir('../../') | ||
| 31 | 33 | ||
| 32 | 34 | obj = bld.new_task_gen('cxx', 'shlib', 'node_addon') | |
| 33 | 35 | obj.target = 'git' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments