| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -230,14 +230,26 @@ | |||
| 230 | 230 | "cred": { | |
| 231 | 231 | "cType": "git_cred", | |
| 232 | 232 | "functions": { | |
| 233 | + "git_cred_default_new":{ | ||
| 234 | + "isAsync": false | ||
| 235 | + }, | ||
| 233 | 236 | "git_cred_ssh_custom_new": { | |
| 234 | 237 | "ignore": true | |
| 235 | 238 | }, | |
| 236 | 239 | "git_cred_ssh_interactive_new": { | |
| 237 | 240 | "ignore": true | |
| 238 | 241 | }, | |
| 242 | + "git_cred_ssh_key_from_agent":{ | ||
| 243 | + "isAsync": false | ||
| 244 | + }, | ||
| 245 | + "git_cred_ssh_key_new":{ | ||
| 246 | + "isAsync": false | ||
| 247 | + }, | ||
| 239 | 248 | "git_cred_userpass": { | |
| 240 | 249 | "ignore": true | |
| 250 | + }, | ||
| 251 | + "git_cred_userpass_plaintext_new": { | ||
| 252 | + "isAsync": false | ||
| 241 | 253 | } | |
| 242 | 254 | } | |
| 243 | 255 | }, | |
@@ -332,6 +344,13 @@ | |||
| 332 | 344 | "git_diff_tree_to_index": { | |
| 333 | 345 | "ignore": true | |
| 334 | 346 | }, | |
| 347 | + "git_diff_tree_to_tree": { | ||
| 348 | + "args": { | ||
| 349 | + "opts": { | ||
| 350 | + "isOptional": true | ||
| 351 | + } | ||
| 352 | + } | ||
| 353 | + }, | ||
| 335 | 354 | "git_diff_tree_to_workdir": { | |
| 336 | 355 | "ignore": true | |
| 337 | 356 | }, | |
@@ -675,9 +694,15 @@ | |||
| 675 | 694 | "git_patch_from_buffers": { | |
| 676 | 695 | "ignore": true | |
| 677 | 696 | }, | |
| 697 | + "git_patch_from_diff": { | ||
| 698 | + "isAsync": false | ||
| 699 | + }, | ||
| 678 | 700 | "git_patch_get_hunk": { | |
| 679 | 701 | "ignore": true | |
| 680 | 702 | }, | |
| 703 | + "git_patch_get_line_in_hunk": { | ||
| 704 | + "isAsync": false | ||
| 705 | + }, | ||
| 681 | 706 | "git_patch_line_stats": { | |
| 682 | 707 | "ignore": true | |
| 683 | 708 | }, | |
@@ -786,7 +811,11 @@ | |||
| 786 | 811 | "ignore": true | |
| 787 | 812 | }, | |
| 788 | 813 | "git_remote_list": { | |
| 789 | - "ignore": true | ||
| 814 | + "args": { | ||
| 815 | + "out": { | ||
| 816 | + "shouldAlloc": true | ||
| 817 | + } | ||
| 818 | + } | ||
| 790 | 819 | }, | |
| 791 | 820 | "git_remote_ls": { | |
| 792 | 821 | "ignore": true | |
@@ -839,11 +868,10 @@ | |||
| 839 | 868 | "git_revwalk_free": { | |
| 840 | 869 | "ignore": true | |
| 841 | 870 | }, | |
| 842 | - "git_revwalk_next": { | ||
| 843 | - "ignore": true | ||
| 844 | - }, | ||
| 845 | 871 | "git_revwalk_new": { | |
| 846 | - "ignore": true | ||
| 872 | + "isAsync": false, | ||
| 873 | + "jsFunctionName": "createRevwalk", | ||
| 874 | + "cppFunctionName": "CreateRevwalk" | ||
| 847 | 875 | } | |
| 848 | 876 | } | |
| 849 | 877 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,72 +1,159 @@ | |||
| 1 | 1 | { | |
| 2 | - "types": [ | ||
| 3 | - [ | ||
| 4 | - "git_direction", | ||
| 5 | - { | ||
| 6 | - "type": "enum" | ||
| 7 | - } | ||
| 8 | - ], | ||
| 9 | - [ | ||
| 10 | - "git_merge_options", | ||
| 11 | - { | ||
| 12 | - "type": "struct", | ||
| 13 | - "fields": [ | ||
| 14 | - { | ||
| 15 | - "type": "unsigned int", | ||
| 16 | - "name": "version" | ||
| 17 | - }, | ||
| 18 | - { | ||
| 19 | - "type": "git_merge_tree_flag_t", | ||
| 20 | - "name": "flags" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "type": "unsigned int", | ||
| 24 | - "name": "rename_threshold" | ||
| 25 | - }, | ||
| 26 | - { | ||
| 27 | - "type": "unsigned int", | ||
| 28 | - "name": "target_limit" | ||
| 29 | - }, | ||
| 30 | - { | ||
| 31 | - "type": "git_diff_similarity_metric *", | ||
| 32 | - "name": "metric", | ||
| 33 | - "ignore": true | ||
| 34 | - }, | ||
| 35 | - { | ||
| 36 | - "type": "git_merge_file_favor_t", | ||
| 37 | - "name": "file_favor" | ||
| 2 | + "types": { | ||
| 3 | + "git_cred_default": { | ||
| 4 | + "decl": "git_cred" | ||
| 5 | + }, | ||
| 6 | + "git_diff_hunk": { | ||
| 7 | + "decl": [ | ||
| 8 | + "int old_start", | ||
| 9 | + "int old_lines", | ||
| 10 | + "int new_start", | ||
| 11 | + "int new_lines", | ||
| 12 | + "size_t header_len", | ||
| 13 | + "char header[128]" | ||
| 14 | + ] | ||
| 15 | + }, | ||
| 16 | + "git_diff_line": { | ||
| 17 | + "decl": [ | ||
| 18 | + "int origin", | ||
| 19 | + "int old_lineno", | ||
| 20 | + "int new_lineno", | ||
| 21 | + "int num_lines", | ||
| 22 | + "size_t, content_len", | ||
| 23 | + "git_off_t content_offset", | ||
| 24 | + "const char * content" | ||
| 25 | + ], | ||
| 26 | + "fields": [ | ||
| 27 | + { | ||
| 28 | + "name": "origin", | ||
| 29 | + "type": "int" | ||
| 30 | + }, | ||
| 31 | + { | ||
| 32 | + "name": "old_lineno", | ||
| 33 | + "type": "int" | ||
| 34 | + }, | ||
| 35 | + { | ||
| 36 | + "name": "new_lineno", | ||
| 37 | + "type": "int" | ||
| 38 | + }, | ||
| 39 | + { | ||
| 40 | + "name": "num_lines", | ||
| 41 | + "type": "int" | ||
| 42 | + }, | ||
| 43 | + { | ||
| 44 | + "name": "content_len", | ||
| 45 | + "type": "size_t" | ||
| 46 | + }, | ||
| 47 | + { | ||
| 48 | + "name": "content_offset", | ||
| 49 | + "type": "git_off_t" | ||
| 50 | + }, | ||
| 51 | + { | ||
| 52 | + "name": "content", | ||
| 53 | + "type": "const char *" | ||
| 54 | + } | ||
| 55 | + ] | ||
| 56 | + }, | ||
| 57 | + "git_note_iterator": { | ||
| 58 | + "decl": "git_iterator" | ||
| 59 | + }, | ||
| 60 | + "git_tree_entry": { | ||
| 61 | + "fields": [ | ||
| 62 | + { | ||
| 63 | + "name": "removed", | ||
| 64 | + "type": "uint16_t" | ||
| 65 | + }, | ||
| 66 | + { | ||
| 67 | + "name": "attr", | ||
| 68 | + "type": "uint16_t" | ||
| 69 | + }, | ||
| 70 | + { | ||
| 71 | + "name": "oid", | ||
| 72 | + "type": "git_oid" | ||
| 73 | + }, | ||
| 74 | + { | ||
| 75 | + "name": "filename_len", | ||
| 76 | + "type": "size_t" | ||
| 77 | + }, | ||
| 78 | + { | ||
| 79 | + "name": "filename", | ||
| 80 | + "structType": "char", | ||
| 81 | + "structName": "filename[1]", | ||
| 82 | + "type": "char *" | ||
| 83 | + } | ||
| 84 | + ] | ||
| 85 | + } | ||
| 86 | + }, | ||
| 87 | + "new" : { | ||
| 88 | + "types": [ | ||
| 89 | + [ | ||
| 90 | + "git_direction", | ||
| 91 | + { | ||
| 92 | + "type": "enum" | ||
| 93 | + } | ||
| 94 | + ], | ||
| 95 | + [ | ||
| 96 | + "git_merge_options", | ||
| 97 | + { | ||
| 98 | + "type": "struct", | ||
| 99 | + "fields": [ | ||
| 100 | + { | ||
| 101 | + "type": "unsigned int", | ||
| 102 | + "name": "version" | ||
| 103 | + }, | ||
| 104 | + { | ||
| 105 | + "type": "git_merge_tree_flag_t", | ||
| 106 | + "name": "flags" | ||
| 107 | + }, | ||
| 108 | + { | ||
| 109 | + "type": "unsigned int", | ||
| 110 | + "name": "rename_threshold" | ||
| 111 | + }, | ||
| 112 | + { | ||
| 113 | + "type": "unsigned int", | ||
| 114 | + "name": "target_limit" | ||
| 115 | + }, | ||
| 116 | + { | ||
| 117 | + "type": "git_diff_similarity_metric *", | ||
| 118 | + "name": "metric", | ||
| 119 | + "ignore": true | ||
| 120 | + }, | ||
| 121 | + { | ||
| 122 | + "type": "git_merge_file_favor_t", | ||
| 123 | + "name": "file_favor" | ||
| 124 | + } | ||
| 125 | + ], | ||
| 126 | + "used": { | ||
| 127 | + "needs": [ | ||
| 128 | + "git_merge_init_options" | ||
| 129 | + ] | ||
| 38 | 130 | } | |
| 39 | - ], | ||
| 40 | - "used": { | ||
| 41 | - "needs": [ | ||
| 42 | - "git_merge_init_options" | ||
| 43 | - ] | ||
| 44 | 131 | } | |
| 45 | - } | ||
| 46 | - ], | ||
| 47 | - [ | ||
| 48 | - "git_off_t", | ||
| 49 | - { | ||
| 50 | - "type": "enum" | ||
| 51 | - } | ||
| 52 | - ], | ||
| 53 | - [ | ||
| 54 | - "git_remote_autotag_option_t", | ||
| 55 | - { | ||
| 56 | - "type": "enum" | ||
| 57 | - } | ||
| 58 | - ], | ||
| 59 | - [ | ||
| 60 | - "git_time_t", | ||
| 61 | - { | ||
| 62 | - "type": "enum" | ||
| 63 | - } | ||
| 64 | - ], | ||
| 65 | - [ | ||
| 66 | - "git_trace_level_t", | ||
| 67 | - { | ||
| 68 | - "type": "enum" | ||
| 69 | - } | ||
| 132 | + ], | ||
| 133 | + [ | ||
| 134 | + "git_off_t", | ||
| 135 | + { | ||
| 136 | + "type": "enum" | ||
| 137 | + } | ||
| 138 | + ], | ||
| 139 | + [ | ||
| 140 | + "git_remote_autotag_option_t", | ||
| 141 | + { | ||
| 142 | + "type": "enum" | ||
| 143 | + } | ||
| 144 | + ], | ||
| 145 | + [ | ||
| 146 | + "git_time_t", | ||
| 147 | + { | ||
| 148 | + "type": "enum" | ||
| 149 | + } | ||
| 150 | + ], | ||
| 151 | + [ | ||
| 152 | + "git_trace_level_t", | ||
| 153 | + { | ||
| 154 | + "type": "enum" | ||
| 155 | + } | ||
| 156 | + ] | ||
| 70 | 157 | ] | |
| 71 | - ] | ||
| 158 | + } | ||
| 72 | 159 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,9 +8,15 @@ var descriptor = require("./descriptor.json"); | |||
| 8 | 8 | var libgit2 = require("./v" + version + ".json"); | |
| 9 | 9 | var supplement = require("./libgit2-supplement.json"); | |
| 10 | 10 | ||
| 11 | + libgit2.types.forEach(function(type) { | ||
| 12 | + if (supplement.types[type[0]]){ | ||
| 13 | + _.merge(type[1], supplement.types[type[0]]); | ||
| 14 | + } | ||
| 15 | + }); | ||
| 11 | 16 | ||
| 12 | 17 | // libgit2's docs aren't complete so we'll add in what they're missing here | |
| 13 | - Array.prototype.push.apply(libgit2.types, supplement.types); | ||
| 18 | + Array.prototype.push.apply(libgit2.types, supplement.new.types); | ||
| 19 | + | ||
| 14 | 20 | ||
| 15 | 21 | var output = []; | |
| 16 | 22 | var groupNames = []; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ extern "C" { | |||
| 15 | 15 | #include "{{ dependency }}" | |
| 16 | 16 | {%endeach%} | |
| 17 | 17 | ||
| 18 | - {%if !needsForwardDeclaration%} | ||
| 18 | + {%if needsForwardDeclaration == true%} | ||
| 19 | 19 | // Forward declaration. | |
| 20 | 20 | struct {{ cType }} { | |
| 21 | 21 | {%each fields as field%} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,7 +186,7 @@ var Utils = { | |||
| 186 | 186 | Utils.decorateField(field, allFields, fieldOverrides[field.name] || {}); | |
| 187 | 187 | }); | |
| 188 | 188 | ||
| 189 | - typeDef.needsForwardDeclaration = typeDef.decl !== typeDef.cType; | ||
| 189 | + typeDef.needsForwardDeclaration = typeDef.decl === typeDef.cType; | ||
| 190 | 190 | ||
| 191 | 191 | _.merge(typeDef, partialOverrides); | |
| 192 | 192 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,7 +60,7 @@ Commit.prototype.getEntry = function(path, callback) { | |||
| 60 | 60 | ||
| 61 | 61 | /** | |
| 62 | 62 | * Walk the history from this commit backwards. | |
| 63 | - * An EventEmitter is returned that will emit a "commit" event for each | ||
| 63 | + * An EventEmitter is returned that will emit a "commit" event for each | ||
| 64 | 64 | * commit in the history, and one "end" event when the walk is completed. | |
| 65 | 65 | * Don"t forget to call `start()` on the returned event. | |
| 66 | 66 | * | |
@@ -166,7 +166,7 @@ Commit.prototype.parents = function() { | |||
| 166 | 166 | }; | |
| 167 | 167 | ||
| 168 | 168 | /** | |
| 169 | - * Generate an array of diff trees showing changes between this commit | ||
| 169 | + * Generate an array of diff trees showing changes between this commit | ||
| 170 | 170 | * and its parent(s). | |
| 171 | 171 | * | |
| 172 | 172 | * @param {Function} callback | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,12 +3,6 @@ var normalizeOid = require("./util/normalize_oid"); | |||
| 3 | 3 | ||
| 4 | 4 | var Revwalk = NodeGit.Revwalk; | |
| 5 | 5 | ||
| 6 | - // Backwards compatibility. | ||
| 7 | - Object.defineProperty(NodeGit, "RevWalk", { | ||
| 8 | - value: Revwalk, | ||
| 9 | - enumerable: false | ||
| 10 | - }); | ||
| 11 | - | ||
| 12 | 6 | var oldSorting = Revwalk.prototype.sorting; | |
| 13 | 7 | ||
| 14 | 8 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,12 +3,6 @@ var NodeGit = require("../"); | |||
| 3 | 3 | ||
| 4 | 4 | var TreeEntry = NodeGit.TreeEntry; | |
| 5 | 5 | ||
| 6 | - // Backwards compatibility. | ||
| 7 | - Object.defineProperty(TreeEntry.prototype, "name", { | ||
| 8 | - value: TreeEntry.prototype.filename, | ||
| 9 | - enumerable: false | ||
| 10 | - }); | ||
| 11 | - | ||
| 12 | 6 | /** | |
| 13 | 7 | * Refer to vendor/libgit2/include/git2/types.h for filemode definitions. | |
| 14 | 8 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ describe("Oid", function() { | |||
| 8 | 8 | var Oid = require("../../lib/oid"); | |
| 9 | 9 | ||
| 10 | 10 | before(function() { | |
| 11 | - this.oid = Oid.fromstr(oid); | ||
| 11 | + this.oid = Oid.fromString(oid); | ||
| 12 | 12 | }); | |
| 13 | 13 | ||
| 14 | 14 | it("can convert a string to an oid", function() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments