Skip to content

Commit a524aff

Browse files
committed
Added in cherry pick and buf methods
1 parent 56006b2 commit a524aff

File tree

1 file changed

+264
-47
lines changed

1 file changed

+264
-47
lines changed

api-viewer/versions/wip.json

Lines changed: 264 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,215 @@
17491749
"hasConstructor": true,
17501750
"functions": []
17511751
},
1752+
{
1753+
"cType": "git_commit",
1754+
"altType": "git_cherry_pick",
1755+
"trim": false,
1756+
"dependencies": [
1757+
"../include/cherry_pick_options.h",
1758+
"../include/merge_options.h",
1759+
"../include/index.h",
1760+
"../include/repository.h",
1761+
"../include/commit.h",
1762+
"../include/cherry_pick_options.h",
1763+
"../include/index.h",
1764+
"../include/repository.h",
1765+
"../include/commit.h"
1766+
],
1767+
"functions": [
1768+
{
1769+
"cFunctionName": "git_cherry_pick_init_options",
1770+
"ignore": false,
1771+
"description": "<p>Initializes a <code>git_cherry_pick_options</code> with default values. Equivalent to\n creating an instance with GIT_CHERRY_PICK_OPTIONS_INIT.</p>\n",
1772+
"cppFunctionName": "CherryPickInitOptions",
1773+
"jsFunctionName": "cherryPickInitOptions",
1774+
"return": {
1775+
"cType": "int",
1776+
"comment": " Zero on success; -1 on failure.",
1777+
"cppClassName": "Number",
1778+
"jsClassName": "Number"
1779+
},
1780+
"isConstructorMethod": false,
1781+
"isPrototypeMethod": true,
1782+
"args": [
1783+
{
1784+
"name": "opts",
1785+
"cType": "git_cherry_pick_options *",
1786+
"cppClassName": "GitCherryPickOptions",
1787+
"jsClassName": "CherryPickOptions",
1788+
"comment": "the `git_cherry_pick_options` struct to initialize",
1789+
"isReturn": false,
1790+
"isSelf": false,
1791+
"shouldAlloc": false
1792+
},
1793+
{
1794+
"name": "version",
1795+
"cType": "unsigned int",
1796+
"cppClassName": "Number",
1797+
"jsClassName": "Number",
1798+
"comment": "Version of struct; pass `GIT_CHERRY_PICK_OPTIONS_VERSION`",
1799+
"isReturn": false,
1800+
"isSelf": false,
1801+
"shouldAlloc": false
1802+
}
1803+
],
1804+
"isAsync": false,
1805+
"comment": ""
1806+
},
1807+
{
1808+
"cFunctionName": "git_cherry_pick_commit",
1809+
"ignore": false,
1810+
"description": "<p>Cherry-picks the given commit against the given &quot;our&quot; commit, producing an\n index that reflects the result of the cherry-pick.</p>\n",
1811+
"cppFunctionName": "CherryPickCommit",
1812+
"jsFunctionName": "cherryPickCommit",
1813+
"return": {
1814+
"cType": "int",
1815+
"comment": " zero on success, -1 on failure.",
1816+
"cppClassName": "Number",
1817+
"jsClassName": "Number",
1818+
"isErrorCode": true
1819+
},
1820+
"isConstructorMethod": false,
1821+
"isPrototypeMethod": true,
1822+
"args": [
1823+
{
1824+
"name": "out",
1825+
"cType": "git_index **",
1826+
"cppClassName": "GitIndex",
1827+
"jsClassName": "Index",
1828+
"comment": "pointer to store the index result in",
1829+
"isReturn": true,
1830+
"isSelf": false,
1831+
"shouldAlloc": false
1832+
},
1833+
{
1834+
"name": "repo",
1835+
"cType": "git_repository *",
1836+
"cppClassName": "GitRepository",
1837+
"jsClassName": "Repository",
1838+
"comment": "the repository that contains the given commits",
1839+
"isReturn": false,
1840+
"isSelf": false,
1841+
"shouldAlloc": false
1842+
},
1843+
{
1844+
"name": "cherry_pick_commit",
1845+
"cType": "git_commit *",
1846+
"cppClassName": "GitCommit",
1847+
"jsClassName": "Commit",
1848+
"comment": "the commit to cherry-pick",
1849+
"isReturn": false,
1850+
"isSelf": false,
1851+
"shouldAlloc": false
1852+
},
1853+
{
1854+
"name": "our_commit",
1855+
"cType": "git_commit *",
1856+
"cppClassName": "GitCommit",
1857+
"jsClassName": "Commit",
1858+
"comment": "the commit to revert against (eg, HEAD)",
1859+
"isReturn": false,
1860+
"isSelf": false,
1861+
"shouldAlloc": false
1862+
},
1863+
{
1864+
"name": "mainline",
1865+
"cType": "unsigned int",
1866+
"cppClassName": "Number",
1867+
"jsClassName": "Number",
1868+
"comment": "the parent of the revert commit, if it is a merge",
1869+
"isReturn": false,
1870+
"isSelf": false,
1871+
"shouldAlloc": false
1872+
},
1873+
{
1874+
"name": "merge_options",
1875+
"cType": "const git_merge_options *",
1876+
"cppClassName": "GitMergeOptions",
1877+
"jsClassName": "MergeOptions",
1878+
"comment": "the merge options (or null for defaults)",
1879+
"isReturn": false,
1880+
"isSelf": false,
1881+
"shouldAlloc": false
1882+
}
1883+
],
1884+
"isAsync": true,
1885+
"comment": "<p>The returned index must be freed explicitly with <code>git_index_free</code>.</p>\n"
1886+
},
1887+
{
1888+
"cFunctionName": "git_cherry_pick",
1889+
"ignore": false,
1890+
"description": "<p>Cherry-pick the given commit, producing changes in the index and working directory.</p>\n",
1891+
"cppFunctionName": "CherryPick",
1892+
"jsFunctionName": "cherryPick",
1893+
"return": {
1894+
"cType": "int",
1895+
"comment": " zero on success, -1 on failure.",
1896+
"cppClassName": "Number",
1897+
"jsClassName": "Number"
1898+
},
1899+
"isConstructorMethod": false,
1900+
"isPrototypeMethod": true,
1901+
"args": [
1902+
{
1903+
"name": "repo",
1904+
"cType": "git_repository *",
1905+
"cppClassName": "GitRepository",
1906+
"jsClassName": "Repository",
1907+
"comment": "the repository to cherry-pick",
1908+
"isReturn": false,
1909+
"isSelf": false,
1910+
"shouldAlloc": false
1911+
},
1912+
{
1913+
"name": "commit",
1914+
"cType": "git_commit *",
1915+
"cppClassName": "GitCommit",
1916+
"jsClassName": "Commit",
1917+
"comment": "the commit to cherry-pick",
1918+
"isReturn": false,
1919+
"isSelf": false,
1920+
"shouldAlloc": false
1921+
},
1922+
{
1923+
"name": "cherry_pick_options",
1924+
"cType": "const git_cherry_pick_options *",
1925+
"cppClassName": "GitCherryPickOptions",
1926+
"jsClassName": "CherryPickOptions",
1927+
"comment": "the cherry-pick options (or null for defaults)",
1928+
"isReturn": false,
1929+
"isSelf": false,
1930+
"shouldAlloc": false
1931+
}
1932+
],
1933+
"isAsync": false,
1934+
"comment": ""
1935+
}
1936+
],
1937+
"filename": "cherrypick.h",
1938+
"ignore": false,
1939+
"cppClassName": "GitCherrypick",
1940+
"jsClassName": "Cherrypick",
1941+
"description": " Parsed representation of a commit object. ",
1942+
"fields": []
1943+
},
1944+
{
1945+
"cType": "git_cherry_pick_options",
1946+
"isStruct": true,
1947+
"dependencies": [
1948+
"../include/functions/copy.h",
1949+
"../include/cherry_pick_options.h",
1950+
"../include/checkout_options.h"
1951+
],
1952+
"fields": [],
1953+
"filename": "cherry_pick_options.h",
1954+
"ignore": false,
1955+
"cppClassName": "GitCherryPickOptions",
1956+
"jsClassName": "CherryPickOptions",
1957+
"description": " \n\n git2/cherrypick.h\n ",
1958+
"hasConstructor": true,
1959+
"functions": []
1960+
},
17521961
{
17531962
"cType": null,
17541963
"trim": false,
@@ -2431,16 +2640,6 @@
24312640
"hasConstructor": false,
24322641
"fields": []
24332642
},
2434-
{
2435-
"cType": null,
2436-
"filename": "common.h",
2437-
"ignore": false,
2438-
"cppClassName": "GitCommon",
2439-
"jsClassName": "Common",
2440-
"dependencies": [],
2441-
"fields": [],
2442-
"functions": []
2443-
},
24442643
{
24452644
"filename": "config.h",
24462645
"ignore": false,
@@ -2458,13 +2657,13 @@
24582657
"functions": []
24592658
},
24602659
{
2660+
"cType": "git_cred",
24612661
"isStruct": true,
24622662
"filename": "cred.h",
24632663
"ignore": false,
24642664
"cppClassName": "GitCred",
24652665
"jsClassName": "Cred",
2466-
"cType": "git_diff",
2467-
"description": " The diff object that contains all individual file deltas.",
2666+
"description": "",
24682667
"dependencies": [],
24692668
"fields": [],
24702669
"functions": []
@@ -2949,13 +3148,39 @@
29493148
"functions": []
29503149
},
29513150
{
2952-
"cType": null,
2953-
"filename": "errors.h",
3151+
"cType": "git_error",
3152+
"altType": "giterr",
3153+
"filename": "error.h",
29543154
"ignore": false,
2955-
"cppClassName": "GitErrors",
2956-
"jsClassName": "Errors",
2957-
"dependencies": [],
2958-
"fields": [],
3155+
"cppClassName": "GitError",
3156+
"jsClassName": "Error",
3157+
"description": " Structure to store extra details of the last error that occurred.",
3158+
"hasConstructor": false,
3159+
"dependencies": [
3160+
"../include/buf.h"
3161+
],
3162+
"fields": [
3163+
{
3164+
"type": "char *",
3165+
"name": "message",
3166+
"comments": "",
3167+
"cType": "char *",
3168+
"cppFunctionName": "Message",
3169+
"jsFunctionName": "message",
3170+
"cppClassName": "String",
3171+
"jsClassName": "String"
3172+
},
3173+
{
3174+
"type": "int",
3175+
"name": "klass",
3176+
"comments": "",
3177+
"cType": "int",
3178+
"cppFunctionName": "Klass",
3179+
"jsFunctionName": "klass",
3180+
"cppClassName": "Number",
3181+
"jsClassName": "Number"
3182+
}
3183+
],
29593184
"functions": []
29603185
},
29613186
{
@@ -3038,7 +3263,7 @@
30383263
"cppClassName": "GitInttypes",
30393264
"jsClassName": "Inttypes",
30403265
"dependencies": [
3041-
"../include/odb_backend.h"
3266+
"../include/oid.h"
30423267
],
30433268
"fields": [],
30443269
"functions": []
@@ -3050,13 +3275,26 @@
30503275
"cppClassName": "GitMerge",
30513276
"jsClassName": "Merge",
30523277
"dependencies": [
3278+
"../include/merge_options.h",
30533279
"../include/repository.h",
30543280
"../include/oid.h",
30553281
"../include/index.h"
30563282
],
30573283
"fields": [],
30583284
"functions": []
30593285
},
3286+
{
3287+
"cType": "git_merge_options",
3288+
"isStruct": true,
3289+
"filename": "merge_options.h",
3290+
"ignore": false,
3291+
"cppClassName": "GitMergeOptions",
3292+
"jsClassName": "MergeOptions",
3293+
"description": "",
3294+
"dependencies": [],
3295+
"fields": [],
3296+
"functions": []
3297+
},
30603298
{
30613299
"cType": null,
30623300
"filename": "message.h",
@@ -4294,7 +4532,13 @@
42944532
"ignore": false,
42954533
"cppClassName": "GitReset",
42964534
"jsClassName": "Reset",
4297-
"dependencies": [],
4535+
"dependencies": [
4536+
"../include/tag.h",
4537+
"../include/repository.h",
4538+
"../include/object.h",
4539+
"../include/oid.h",
4540+
"../include/strarray.h"
4541+
],
42984542
"fields": [],
42994543
"functions": []
43004544
},
@@ -4696,33 +4940,6 @@
46964940
"fields": [],
46974941
"functions": []
46984942
},
4699-
{
4700-
"cType": null,
4701-
"filename": "stdint.h",
4702-
"ignore": false,
4703-
"cppClassName": "GitStdint",
4704-
"jsClassName": "Stdint",
4705-
"dependencies": [
4706-
"../include/tree.h",
4707-
"../include/repository.h",
4708-
"../include/tree_entry.h",
4709-
"../include/object.h",
4710-
"../include/treebuilder.h",
4711-
"../include/oid.h"
4712-
],
4713-
"fields": [],
4714-
"functions": []
4715-
},
4716-
{
4717-
"cType": null,
4718-
"filename": "stdarray.h",
4719-
"ignore": false,
4720-
"cppClassName": "GitStdarray",
4721-
"jsClassName": "Stdarray",
4722-
"dependencies": [],
4723-
"fields": [],
4724-
"functions": []
4725-
},
47264943
{
47274944
"cType": "git_strarray",
47284945
"filename": "strarray.h",

0 commit comments

Comments
 (0)