|
| 1 | +/** |
| 2 | + * This code is auto-generated; unless you know what you're doing, do not modify! |
| 3 | + **/ |
| 4 | + |
| 5 | +#ifndef GITDIFF_H |
| 6 | +#define GITDIFF_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 GitDiff : public ObjectWrap { |
| 18 | + public: |
| 19 | + |
| 20 | + static Persistent<Function> constructor_template; |
| 21 | + static void Initialize (Handle<v8::Object> target); |
| 22 | + |
| 23 | + git_diff_list *GetValue(); |
| 24 | + |
| 25 | + private: |
| 26 | + GitDiff(git_diff_list *raw); |
| 27 | + ~GitDiff(); |
| 28 | + |
| 29 | + static Handle<Value> New(const Arguments& args); |
| 30 | + |
| 31 | + |
| 32 | + static Handle<Value> TreeToTree(const Arguments& args); |
| 33 | + static void TreeToTreeWork(uv_work_t* req); |
| 34 | + static void TreeToTreeAfterWork(uv_work_t* req); |
| 35 | + |
| 36 | + struct TreeToTreeBaton { |
| 37 | + uv_work_t request; |
| 38 | + const git_error* error; |
| 39 | + git_diff_list * diff; |
| 40 | + Persistent<Value> repoReference; |
| 41 | + git_repository * repo; |
| 42 | + Persistent<Value> old_treeReference; |
| 43 | + git_tree * old_tree; |
| 44 | + Persistent<Value> new_treeReference; |
| 45 | + git_tree * new_tree; |
| 46 | + Persistent<Value> optsReference; |
| 47 | + const git_diff_options * opts; |
| 48 | + Persistent<Function> callback; |
| 49 | + }; |
| 50 | + static Handle<Value> TreeToIndex(const Arguments& args); |
| 51 | + static void TreeToIndexWork(uv_work_t* req); |
| 52 | + static void TreeToIndexAfterWork(uv_work_t* req); |
| 53 | + |
| 54 | + struct TreeToIndexBaton { |
| 55 | + uv_work_t request; |
| 56 | + const git_error* error; |
| 57 | + git_diff_list * diff; |
| 58 | + Persistent<Value> repoReference; |
| 59 | + git_repository * repo; |
| 60 | + Persistent<Value> old_treeReference; |
| 61 | + git_tree * old_tree; |
| 62 | + Persistent<Value> indexReference; |
| 63 | + git_index * index; |
| 64 | + Persistent<Value> optsReference; |
| 65 | + const git_diff_options * opts; |
| 66 | + Persistent<Function> callback; |
| 67 | + }; |
| 68 | + static Handle<Value> IndexToWorkdir(const Arguments& args); |
| 69 | + static void IndexToWorkdirWork(uv_work_t* req); |
| 70 | + static void IndexToWorkdirAfterWork(uv_work_t* req); |
| 71 | + |
| 72 | + struct IndexToWorkdirBaton { |
| 73 | + uv_work_t request; |
| 74 | + const git_error* error; |
| 75 | + git_diff_list * diff; |
| 76 | + Persistent<Value> repoReference; |
| 77 | + git_repository * repo; |
| 78 | + Persistent<Value> indexReference; |
| 79 | + git_index * index; |
| 80 | + Persistent<Value> optsReference; |
| 81 | + const git_diff_options * opts; |
| 82 | + Persistent<Function> callback; |
| 83 | + }; |
| 84 | + static Handle<Value> TreeToWorkdir(const Arguments& args); |
| 85 | + static void TreeToWorkdirWork(uv_work_t* req); |
| 86 | + static void TreeToWorkdirAfterWork(uv_work_t* req); |
| 87 | + |
| 88 | + struct TreeToWorkdirBaton { |
| 89 | + uv_work_t request; |
| 90 | + const git_error* error; |
| 91 | + git_diff_list * diff; |
| 92 | + Persistent<Value> repoReference; |
| 93 | + git_repository * repo; |
| 94 | + Persistent<Value> old_treeReference; |
| 95 | + git_tree * old_tree; |
| 96 | + Persistent<Value> optsReference; |
| 97 | + const git_diff_options * opts; |
| 98 | + Persistent<Function> callback; |
| 99 | + }; |
| 100 | + static Handle<Value> Merge(const Arguments& args); |
| 101 | + static Handle<Value> FindSimilar(const Arguments& args); |
| 102 | + static Handle<Value> StatusChar(const Arguments& args); |
| 103 | + static Handle<Value> NumDeltas(const Arguments& args); |
| 104 | + static Handle<Value> NumDeltasOfType(const Arguments& args); |
| 105 | + static Handle<Value> GetPatch(const Arguments& args); |
| 106 | + git_diff_list *raw; |
| 107 | +}; |
| 108 | + |
| 109 | +#endif |
0 commit comments