| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | - - rename all async methods getXXX | ||
| 2 | 1 | - audit all ** methods so that all finds go through the repo in js land so that the .repo pointer is set. | |
| 3 | 2 | - rename files remove .h | |
| 4 | 3 | - Cleanup diff api | |
| 5 | 4 | - free everything malloc'd | |
| 6 | 5 | - codegen documentation | |
| 7 | 6 | - extract out more partials | |
| 7 | + - audit return types for things that should be copied | ||
| 8 | + - array handling | ||
| 9 | + - make normalizeOid do more work. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,8 @@ | |||
| 11 | 11 | 'src/object.cc', | |
| 12 | 12 | 'src/repo.cc', | |
| 13 | 13 | 'src/index.cc', | |
| 14 | + 'src/index_entry.cc', | ||
| 15 | + 'src/index_time.cc', | ||
| 14 | 16 | 'src/tag.cc', | |
| 15 | 17 | 'src/revwalk.cc', | |
| 16 | 18 | 'src/signature.cc', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,6 @@ class GitIndex : public ObjectWrap { | |||
| 44 | 44 | const char * index_path; | |
| 45 | 45 | Persistent<Function> callback; | |
| 46 | 46 | }; | |
| 47 | - static Handle<Value> Owner(const Arguments& args); | ||
| 48 | 47 | static Handle<Value> Read(const Arguments& args); | |
| 49 | 48 | static void ReadWork(uv_work_t* req); | |
| 50 | 49 | static void ReadAfterWork(uv_work_t* req); | |
@@ -96,8 +95,9 @@ class GitIndex : public ObjectWrap { | |||
| 96 | 95 | git_index * index; | |
| 97 | 96 | Persistent<Function> callback; | |
| 98 | 97 | }; | |
| 99 | - static Handle<Value> Entrycount(const Arguments& args); | ||
| 98 | + static Handle<Value> Size(const Arguments& args); | ||
| 100 | 99 | static Handle<Value> Clear(const Arguments& args); | |
| 100 | + static Handle<Value> Entry(const Arguments& args); | ||
| 101 | 101 | static Handle<Value> Remove(const Arguments& args); | |
| 102 | 102 | static Handle<Value> RemoveDirectory(const Arguments& args); | |
| 103 | 103 | static Handle<Value> AddBypath(const Arguments& args); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,40 @@ | |||
| 1 | + /** | ||
| 2 | + * This code is auto-generated; unless you know what you're doing, do not modify! | ||
| 3 | + **/ | ||
| 4 | + | ||
| 5 | + #ifndef GITINDEXENTRY_H | ||
| 6 | + #define GITINDEXENTRY_H | ||
| 7 | + | ||
| 8 | + #include <v8.h> | ||
| 9 | + #include <node.h> | ||
| 10 | + #include <string> | ||
| 11 | + | ||
| 12 | + #include "git2.h" | ||
| 13 | + | ||
| 14 | + using namespace node; | ||
| 15 | + using namespace v8; | ||
| 16 | + | ||
| 17 | + class GitIndexEntry : public ObjectWrap { | ||
| 18 | + public: | ||
| 19 | + | ||
| 20 | + static Persistent<Function> constructor_template; | ||
| 21 | + static void Initialize (Handle<v8::Object> target); | ||
| 22 | + | ||
| 23 | + git_index_entry *GetValue(); | ||
| 24 | + | ||
| 25 | + static Handle<Value> New(void *raw); | ||
| 26 | + | ||
| 27 | + private: | ||
| 28 | + GitIndexEntry(git_index_entry *raw); | ||
| 29 | + ~GitIndexEntry(); | ||
| 30 | + | ||
| 31 | + static Handle<Value> New(const Arguments& args); | ||
| 32 | + | ||
| 33 | + static Handle<Value> Ctime(const Arguments& args); | ||
| 34 | + static Handle<Value> Mtime(const Arguments& args); | ||
| 35 | + static Handle<Value> Path(const Arguments& args); | ||
| 36 | + | ||
| 37 | + git_index_entry *raw; | ||
| 38 | + }; | ||
| 39 | + | ||
| 40 | + #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,39 @@ | |||
| 1 | + /** | ||
| 2 | + * This code is auto-generated; unless you know what you're doing, do not modify! | ||
| 3 | + **/ | ||
| 4 | + | ||
| 5 | + #ifndef GITINDEXTIME_H | ||
| 6 | + #define GITINDEXTIME_H | ||
| 7 | + | ||
| 8 | + #include <v8.h> | ||
| 9 | + #include <node.h> | ||
| 10 | + #include <string> | ||
| 11 | + | ||
| 12 | + #include "git2.h" | ||
| 13 | + | ||
| 14 | + using namespace node; | ||
| 15 | + using namespace v8; | ||
| 16 | + | ||
| 17 | + class GitIndexTime : public ObjectWrap { | ||
| 18 | + public: | ||
| 19 | + | ||
| 20 | + static Persistent<Function> constructor_template; | ||
| 21 | + static void Initialize (Handle<v8::Object> target); | ||
| 22 | + | ||
| 23 | + git_index_time *GetValue(); | ||
| 24 | + | ||
| 25 | + static Handle<Value> New(void *raw); | ||
| 26 | + | ||
| 27 | + private: | ||
| 28 | + GitIndexTime(git_index_time *raw); | ||
| 29 | + ~GitIndexTime(); | ||
| 30 | + | ||
| 31 | + static Handle<Value> New(const Arguments& args); | ||
| 32 | + | ||
| 33 | + static Handle<Value> Seconds(const Arguments& args); | ||
| 34 | + static Handle<Value> Nanoseconds(const Arguments& args); | ||
| 35 | + | ||
| 36 | + git_index_time *raw; | ||
| 37 | + }; | ||
| 38 | + | ||
| 39 | + #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,11 +35,43 @@ class GitOdb : public ObjectWrap { | |||
| 35 | 35 | static Handle<Value> Open(const Arguments& args); | |
| 36 | 36 | static Handle<Value> AddDiskAlternate(const Arguments& args); | |
| 37 | 37 | static Handle<Value> Read(const Arguments& args); | |
| 38 | + static void ReadWork(uv_work_t* req); | ||
| 39 | + static void ReadAfterWork(uv_work_t* req); | ||
| 40 | + | ||
| 41 | + struct ReadBaton { | ||
| 42 | + uv_work_t request; | ||
| 43 | + int error_code; | ||
| 44 | + const git_error* error; | ||
| 45 | + git_odb_object * out; | ||
| 46 | + Persistent<Value> dbReference; | ||
| 47 | + git_odb * db; | ||
| 48 | + Persistent<Value> idReference; | ||
| 49 | + const git_oid * id; | ||
| 50 | + Persistent<Function> callback; | ||
| 51 | + }; | ||
| 38 | 52 | static Handle<Value> ReadPrefix(const Arguments& args); | |
| 39 | 53 | static Handle<Value> ReadHeader(const Arguments& args); | |
| 40 | 54 | static Handle<Value> Exists(const Arguments& args); | |
| 41 | 55 | static Handle<Value> Refresh(const Arguments& args); | |
| 42 | 56 | static Handle<Value> Write(const Arguments& args); | |
| 57 | + static void WriteWork(uv_work_t* req); | ||
| 58 | + static void WriteAfterWork(uv_work_t* req); | ||
| 59 | + | ||
| 60 | + struct WriteBaton { | ||
| 61 | + uv_work_t request; | ||
| 62 | + int error_code; | ||
| 63 | + const git_error* error; | ||
| 64 | + git_oid * out; | ||
| 65 | + Persistent<Value> odbReference; | ||
| 66 | + git_odb * odb; | ||
| 67 | + Persistent<Value> dataReference; | ||
| 68 | + const void * data; | ||
| 69 | + Persistent<Value> lenReference; | ||
| 70 | + size_t len; | ||
| 71 | + Persistent<Value> typeReference; | ||
| 72 | + git_otype type; | ||
| 73 | + Persistent<Function> callback; | ||
| 74 | + }; | ||
| 43 | 75 | static Handle<Value> Hash(const Arguments& args); | |
| 44 | 76 | static Handle<Value> Hashfile(const Arguments& args); | |
| 45 | 77 | git_odb *raw; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,9 +31,9 @@ class GitOdbObject : public ObjectWrap { | |||
| 31 | 31 | static Handle<Value> New(const Arguments& args); | |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | - static Handle<Value> ObjectData(const Arguments& args); | ||
| 35 | - static Handle<Value> ObjectSize(const Arguments& args); | ||
| 36 | - static Handle<Value> ObjectType(const Arguments& args); | ||
| 34 | + static Handle<Value> Data(const Arguments& args); | ||
| 35 | + static Handle<Value> Size(const Arguments& args); | ||
| 36 | + static Handle<Value> Type(const Arguments& args); | ||
| 37 | 37 | static Handle<Value> Oid(const Arguments& args); | |
| 38 | 38 | git_odb_object *raw; | |
| 39 | 39 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,6 +61,20 @@ class GitRepo : public ObjectWrap { | |||
| 61 | 61 | }; | |
| 62 | 62 | static Handle<Value> Path(const Arguments& args); | |
| 63 | 63 | static Handle<Value> Workdir(const Arguments& args); | |
| 64 | + static Handle<Value> Odb(const Arguments& args); | ||
| 65 | + static Handle<Value> openIndex(const Arguments& args); | ||
| 66 | + static void openIndexWork(uv_work_t* req); | ||
| 67 | + static void openIndexAfterWork(uv_work_t* req); | ||
| 68 | + | ||
| 69 | + struct openIndexBaton { | ||
| 70 | + uv_work_t request; | ||
| 71 | + int error_code; | ||
| 72 | + const git_error* error; | ||
| 73 | + git_index * out; | ||
| 74 | + Persistent<Value> repoReference; | ||
| 75 | + git_repository * repo; | ||
| 76 | + Persistent<Function> callback; | ||
| 77 | + }; | ||
| 64 | 78 | static Handle<Value> GetBlob(const Arguments& args); | |
| 65 | 79 | static void GetBlobWork(uv_work_t* req); | |
| 66 | 80 | static void GetBlobAfterWork(uv_work_t* req); | |
@@ -212,6 +226,20 @@ class GitRepo : public ObjectWrap { | |||
| 212 | 226 | git_repository * repo; | |
| 213 | 227 | Persistent<Function> callback; | |
| 214 | 228 | }; | |
| 229 | + static Handle<Value> Delete(const Arguments& args); | ||
| 230 | + static void DeleteWork(uv_work_t* req); | ||
| 231 | + static void DeleteAfterWork(uv_work_t* req); | ||
| 232 | + | ||
| 233 | + struct DeleteBaton { | ||
| 234 | + uv_work_t request; | ||
| 235 | + int error_code; | ||
| 236 | + const git_error* error; | ||
| 237 | + Persistent<Value> repoReference; | ||
| 238 | + git_repository * repo; | ||
| 239 | + Persistent<Value> tag_nameReference; | ||
| 240 | + const char * tag_name; | ||
| 241 | + Persistent<Function> callback; | ||
| 242 | + }; | ||
| 215 | 243 | git_repository *raw; | |
| 216 | 244 | }; | |
| 217 | 245 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,7 @@ class GitSignature : public ObjectWrap { | |||
| 34 | 34 | static Handle<Value> Email(const Arguments& args); | |
| 35 | 35 | static Handle<Value> Time(const Arguments& args); | |
| 36 | 36 | ||
| 37 | + static Handle<Value> Create(const Arguments& args); | ||
| 37 | 38 | static Handle<Value> Now(const Arguments& args); | |
| 38 | 39 | git_signature *raw; | |
| 39 | 40 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments