Skip to content

Commit b26fcc8

Browse files
committed
Merge pull request #242 from nodegit/blame-methods
Blame methods
2 parents 40d4409 + ab8a68c commit b26fcc8

File tree

2 files changed

+229
-15
lines changed

2 files changed

+229
-15
lines changed

generate/descriptor.json

Lines changed: 68 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,25 @@
176176
}
177177
},
178178

179-
"buffer": {
179+
"buf": {
180+
"cType": "git_buf",
181+
182+
"functions": {
183+
"git_buf_free": {
184+
"ignore": true,
185+
"args": [{ "shouldAlloc": true }]
186+
},
187+
188+
"git_buf_grow": {
189+
"ignore": false,
190+
"args": [{ "shouldAlloc": true }]
191+
},
192+
193+
"git_buf_set": {
194+
"ignore": false,
195+
"args": [{ "shouldAlloc": true }]
196+
}
197+
}
180198
},
181199

182200
"checkout": {
@@ -222,6 +240,47 @@
222240
"fields": []
223241
},
224242

243+
"cherrypick": {
244+
"cType": "git_commit",
245+
"altType": "git_cherry_pick",
246+
"trim": false,
247+
248+
"dependencies": [
249+
"../include/cherry_pick_options.h",
250+
"../include/merge_options.h",
251+
"../include/index.h",
252+
"../include/repository.h",
253+
"../include/commit.h"
254+
],
255+
256+
"functions": {
257+
"git_cherry_pick": {
258+
"ignore": false
259+
},
260+
261+
"git_cherry_pick_commit": {
262+
"ignore": false
263+
},
264+
265+
"git_cherry_pick_init_options": {
266+
"ignore": false
267+
}
268+
}
269+
},
270+
271+
"cherry_pick_options": {
272+
"cType": "git_cherry_pick_options",
273+
"isStruct": true,
274+
275+
"dependencies": [
276+
"../include/functions/copy.h",
277+
"../include/cherry_pick_options.h",
278+
"../include/checkout_options.h"
279+
],
280+
281+
"fields": []
282+
},
283+
225284
"clone": {
226285
"cType": null,
227286
"trim": false,
@@ -361,10 +420,6 @@
361420
}
362421
},
363422

364-
"common": {
365-
"cType": null
366-
},
367-
368423
"config": {
369424
},
370425

@@ -583,8 +638,9 @@
583638
]
584639
},
585640

586-
"errors": {
587-
"cType": null
641+
"error": {
642+
"cType": "git_error",
643+
"altType": "giterr"
588644
},
589645

590646
"filter": {
@@ -614,6 +670,11 @@
614670
"cType": null
615671
},
616672

673+
"merge_options": {
674+
"cType": "git_merge_options",
675+
"isStruct": true
676+
},
677+
617678
"message": {
618679
"cType": null
619680
},
@@ -1005,14 +1066,6 @@
10051066
"cType": null
10061067
},
10071068

1008-
"stdint": {
1009-
"cType": null
1010-
},
1011-
1012-
"stdarray": {
1013-
"cType": null
1014-
},
1015-
10161069
"strarray": {
10171070
"cType": "git_strarray"
10181071
},

generate/types.json

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@
632632
"js": "rrLast"
633633
},
634634
"const git_error *": {
635+
"cpp": "GitError",
635636
"js": "Error"
636637
},
637638
"giterr_clear": {
@@ -9251,5 +9252,165 @@
92519252
"const git_blame_init_options *": {
92529253
"cpp": "InitOptions",
92539254
"js": "initOptions"
9255+
},
9256+
"git_buf": {
9257+
"cpp": "GitBuf",
9258+
"js": "Buf"
9259+
},
9260+
"git_buf **": {
9261+
"cpp": "GitBuf",
9262+
"js": "Buf"
9263+
},
9264+
"git_buf *": {
9265+
"cpp": "GitBuf",
9266+
"js": "Buf"
9267+
},
9268+
"const git_buf **": {
9269+
"cpp": "GitBuf",
9270+
"js": "Buf"
9271+
},
9272+
"const git_buf *": {
9273+
"cpp": "GitBuf",
9274+
"js": "Buf"
9275+
},
9276+
"git_cherry": {
9277+
"cpp": "GitCherry",
9278+
"js": "Cherry"
9279+
},
9280+
"git_cherry **": {
9281+
"cpp": "GitCherry",
9282+
"js": "Cherry"
9283+
},
9284+
"git_cherry *": {
9285+
"cpp": "GitCherry",
9286+
"js": "Cherry"
9287+
},
9288+
"const git_cherry **": {
9289+
"cpp": "GitCherry",
9290+
"js": "Cherry"
9291+
},
9292+
"const git_cherry *": {
9293+
"cpp": "GitCherry",
9294+
"js": "Cherry"
9295+
},
9296+
"git_cherry_pick_options": {
9297+
"cpp": "GitCherryPickOptions",
9298+
"js": "CherryPickOptions"
9299+
},
9300+
"git_cherry_pick_options **": {
9301+
"cpp": "GitCherryPickOptions",
9302+
"js": "CherryPickOptions"
9303+
},
9304+
"git_cherry_pick_options *": {
9305+
"cpp": "GitCherryPickOptions",
9306+
"js": "CherryPickOptions"
9307+
},
9308+
"const git_cherry_pick_options **": {
9309+
"cpp": "GitCherryPickOptions",
9310+
"js": "CherryPickOptions"
9311+
},
9312+
"const git_cherry_pick_options *": {
9313+
"cpp": "GitCherryPickOptions",
9314+
"js": "CherryPickOptions"
9315+
},
9316+
"git_merge_options": {
9317+
"cpp": "GitMergeOptions",
9318+
"js": "MergeOptions"
9319+
},
9320+
"git_merge_options **": {
9321+
"cpp": "GitMergeOptions",
9322+
"js": "MergeOptions"
9323+
},
9324+
"git_merge_options *": {
9325+
"cpp": "GitMergeOptions",
9326+
"js": "MergeOptions"
9327+
},
9328+
"const git_merge_options **": {
9329+
"cpp": "GitMergeOptions",
9330+
"js": "MergeOptions"
9331+
},
9332+
"const git_merge_options *": {
9333+
"cpp": "GitMergeOptions",
9334+
"js": "MergeOptions"
9335+
},
9336+
"git_error": {
9337+
"cpp": "GitError",
9338+
"js": "Error"
9339+
},
9340+
"git_error **": {
9341+
"cpp": "GitError",
9342+
"js": "Error"
9343+
},
9344+
"git_error *": {
9345+
"cpp": "GitError",
9346+
"js": "Error"
9347+
},
9348+
"const git_error **": {
9349+
"cpp": "GitError",
9350+
"js": "Error"
9351+
},
9352+
"git_cherry_pick": {
9353+
"cpp": "CherryPick",
9354+
"js": "cherryPick"
9355+
},
9356+
"git_cherry_pick **": {
9357+
"cpp": "GitCherryPick",
9358+
"js": "CherryPick"
9359+
},
9360+
"git_cherry_pick *": {
9361+
"cpp": "CherryPick",
9362+
"js": "cherryPick"
9363+
},
9364+
"const git_cherry_pick **": {
9365+
"cpp": "GitCherryPick",
9366+
"js": "CherryPick"
9367+
},
9368+
"const git_cherry_pick *": {
9369+
"cpp": "CherryPick",
9370+
"js": "cherryPick"
9371+
},
9372+
"git_cherrypick": {
9373+
"cpp": "GitCherrypick",
9374+
"js": "Cherrypick"
9375+
},
9376+
"git_cherrypick **": {
9377+
"cpp": "GitCherrypick",
9378+
"js": "Cherrypick"
9379+
},
9380+
"git_cherrypick *": {
9381+
"cpp": "GitCherrypick",
9382+
"js": "Cherrypick"
9383+
},
9384+
"const git_cherrypick **": {
9385+
"cpp": "GitCherrypick",
9386+
"js": "Cherrypick"
9387+
},
9388+
"const git_cherrypick *": {
9389+
"cpp": "GitCherrypick",
9390+
"js": "Cherrypick"
9391+
},
9392+
"git_cherry_pick_init_options": {
9393+
"cpp": "CherryPickInitOptions",
9394+
"js": "cherryPickInitOptions"
9395+
},
9396+
"git_cherry_pick_init_options *": {
9397+
"cpp": "CherryPickInitOptions",
9398+
"js": "cherryPickInitOptions"
9399+
},
9400+
"const git_cherry_pick_init_options *": {
9401+
"cpp": "CherryPickInitOptions",
9402+
"js": "cherryPickInitOptions"
9403+
},
9404+
"git_cherry_pick_commit": {
9405+
"cpp": "CherryPickCommit",
9406+
"js": "cherryPickCommit"
9407+
},
9408+
"git_cherry_pick_commit *": {
9409+
"cpp": "CherryPickCommit",
9410+
"js": "cherryPickCommit"
9411+
},
9412+
"const git_cherry_pick_commit *": {
9413+
"cpp": "CherryPickCommit",
9414+
"js": "cherryPickCommit"
92549415
}
92559416
}

0 commit comments

Comments
 (0)