Skip to content

Commit 1f92513

Browse files
committedAug 31, 2023
Add stubs for remote internal functions
1 parent 91fa025 commit 1f92513

File tree

5 files changed

+550
-289
lines changed

5 files changed

+550
-289
lines changed
 

Diff for: ‎docs/DOCS.txt

+187-175
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,193 @@ string git_refspec_string(resource $refspec)
16781678

16791679
string git_refspec_transform(resource $refspec,string $name)
16801680

1681+
----------------------------------------
1682+
[git_remote]
1683+
----------------------------------------
1684+
1685+
Callback signatures:
1686+
1687+
Transport message callback:
1688+
1689+
bool callback(string $str,mixed $payload)
1690+
1691+
If the function returns non-null and false, then the operation is
1692+
aborted.
1693+
1694+
Completion callback:
1695+
1696+
void callback(int $type,mixed $payload)
1697+
1698+
Credential acquire callback:
1699+
1700+
?resource callback(
1701+
string $url,
1702+
string $username_from_url,
1703+
int $allowed_types,
1704+
mixed $payload
1705+
)
1706+
1707+
Returns git_credential resource or NULL to passthrough
1708+
1709+
Transport certificate check callback:
1710+
1711+
bool callback(array $cert,bool $valid,string $host,mixed $payload)
1712+
1713+
Transfer progress callback:
1714+
1715+
void callback(array $stats,mixed $payload)
1716+
1717+
Same as for git_indexer_new
1718+
1719+
Update tips callback:
1720+
1721+
void callback(string $refname,string $a,string $b,mixed $payload)
1722+
1723+
Packbuilder progress callback:
1724+
1725+
See git_packbuilder notes
1726+
1727+
void callback(int $stage,int $current,int $total,mixed $payload)
1728+
1729+
Push transfer progress callback:
1730+
1731+
void callback(int $current,int $total,int $bytes,mixed $payload)
1732+
1733+
Push update reference callback:
1734+
1735+
void callback(string $refname,string $status,mixed $payload)
1736+
1737+
Push negotiation callback:
1738+
1739+
void callback(array $updates,mixed $payload)
1740+
1741+
The transport callback is not implemented at this time since we do not yet
1742+
implement custom transports.
1743+
1744+
void git_remote_add_fetch(resource $repo,string $remote,string $refspec)
1745+
1746+
void git_remote_add_push(resource $repo,string $remote,string $refspec)
1747+
1748+
int git_remote_autotag(resource $remote)
1749+
1750+
void git_remote_connect(resource $remote,int $direction,?array $callbacks,?array $proxy_options,?array $custom_headers)
1751+
1752+
Parameter $callbacks is an associative array corresponding to
1753+
git_remote_callbacks.
1754+
1755+
Parameter $proxy_options is an associative array corresponding to
1756+
git_proxy_options. Options are defaulted using git_proxy_init_options().
1757+
1758+
Parameter $custom_headers is an array of strings.
1759+
1760+
bool git_remote_connected(resource $remote)
1761+
1762+
resource git_remote_create(resource $repo,string $name,string $url)
1763+
1764+
Returns git_remote resource
1765+
1766+
resource git_remote_create_anonymous(resource $repo,string $url)
1767+
1768+
Returns git_remote resource
1769+
1770+
resource git_remote_create_with_fetchspec(resource $repo,string $name,string $url,string $fetchspec)
1771+
1772+
Returns git_remote resource
1773+
1774+
string git_remote_default_branch(resource $remote)
1775+
1776+
void git_remote_delete(resource $repo,string $name)
1777+
1778+
void git_remote_disconnect(resource $remote)
1779+
1780+
void git_remote_download(resource $remote,?array $refspecs,?array $fetch_options)
1781+
1782+
Parameter $fetch_options is an associative array corresponding to
1783+
git_fetch_options. Options are defaulted using git_fetch_init_options().
1784+
1785+
resource git_remote_dup(resource $remote)
1786+
1787+
Returns git_remote resource
1788+
1789+
void git_remote_fetch(resource $remote,?array $refspecs,?array $fetch_options,?string $reflog_message)
1790+
1791+
Parameter $refspecs is an array of strings.
1792+
1793+
Parameter $fetch_options is an associative array corresponding to
1794+
git_fetch_options. Options are defaulted using git_fetch_init_options().
1795+
1796+
void git_remote_free(resource $remote)
1797+
1798+
array git_remote_get_fetch_refspecs(resource $remote)
1799+
1800+
array git_remote_get_push_refspecs(resource $remote)
1801+
1802+
resource git_remote_get_refspec(resource $remote,int $n)
1803+
1804+
Returns git_refspec resource
1805+
1806+
bool git_remote_is_valid_name(string $remote_name)
1807+
1808+
array git_remote_list(resource $repo)
1809+
1810+
resource git_remote_lookup(resource $repo,string $name)
1811+
1812+
Returns git_remote resource
1813+
1814+
array git_remote_ls(resource $remote)
1815+
1816+
Returns an indexed array of git_remote_head arrays
1817+
1818+
string git_remote_name(resource $remote)
1819+
1820+
resource git_remote_owner(resource $remote)
1821+
1822+
Returns git_repository resource
1823+
1824+
void git_remote_prune(resource $remote,?array $callbacks)
1825+
1826+
Parameter $callbacks is an associative array corresponding to
1827+
git_remote_callbacks.
1828+
1829+
void git_remote_prune_refs(resource $remote)
1830+
1831+
void git_remote_push(resource $remote,?array $refspecs,?array $push_options)
1832+
1833+
Parameter $refspecs is an array of string.
1834+
1835+
Parameter $push_options is an associative array corresponding to
1836+
git_push_options. Options are defaulted using git_push_init_options().
1837+
1838+
string git_remote_pushurl(resource $remote)
1839+
1840+
int git_remote_refspec_count(resource $remote)
1841+
1842+
array git_remote_rename(resource $repo,string $name,string $new_name)
1843+
1844+
void git_remote_set_autotag(resource $repo,string $remote,int $value)
1845+
1846+
void git_remote_set_pushurl(resource $repo,string $remote,string $url)
1847+
1848+
void git_remote_set_url(resource $repo,string $remote,string $url)
1849+
1850+
array git_remote_stats(resource $remote)
1851+
1852+
void git_remote_stop(resource $remote)
1853+
1854+
void git_remote_update_tips(resource $remote,?array $callbacks,bool $update_fetchhead,int $download_tags,?string $reflog_message)
1855+
1856+
Parameter $callbacks is an associative array corresponding to
1857+
git_remote_callbacks.
1858+
1859+
void git_remote_upload(resource $remote,?array $refspecs,?array $push_options)
1860+
1861+
Parameter $refspecs is an array of string.
1862+
1863+
Parameter $push_options is an associative array corresponding to
1864+
git_push_options. Options are defaulted using git_push_init_options().
1865+
1866+
string git_remote_url(resource $remote)
1867+
16811868
----------------------------------------
16821869
[git_repository]
16831870
----------------------------------------
@@ -2258,181 +2445,6 @@ git_stash_save(resource,resource,string,int)
22582445

22592446
Returns int
22602447

2261-
----------------------------------------
2262-
[git_remote]
2263-
----------------------------------------
2264-
2265-
Callback signatures:
2266-
2267-
Transport message callback:
2268-
2269-
bool callback(string $str,mixed $payload)
2270-
2271-
If the function returns non-null and false, then the operation is
2272-
aborted.
2273-
2274-
Completion callback:
2275-
2276-
void callback(int $type,mixed $payload)
2277-
2278-
Credential acquire callback:
2279-
2280-
resource callback(string $url,string $username_from_url,
2281-
int $allowed_types,mixed $payload)
2282-
2283-
Returns git_credential resource or NULL to passthrough
2284-
2285-
Transport certificate check callback:
2286-
2287-
bool callback(array $cert,bool $valid,string $host,mixed $payload)
2288-
2289-
Transfer progress callback:
2290-
2291-
Same as for git_indexer_new:
2292-
2293-
void callback(array $stats,mixed $payload)
2294-
2295-
Update tips callback:
2296-
2297-
void callback(string $refname,string $a,string $b,mixed $payload)
2298-
2299-
Packbuilder progress callback:
2300-
2301-
See git_packbuilder notes
2302-
2303-
void callback(int $stage,int $current,int $total,mixed $payload)
2304-
2305-
Push transfer progress callback:
2306-
2307-
void callback(int $current,int $total,int $bytes,mixed $payload)
2308-
2309-
Push update reference callback:
2310-
2311-
void callback(string $refname,string $status,mixed $payload)
2312-
2313-
Push negotiation callback:
2314-
2315-
void callback(array $updates,mixed $payload)
2316-
2317-
NOTE: the transport callback is not implemented at this time since we do not
2318-
yet implement custom transports.
2319-
2320-
git_remote_add_fetch(resource,string,string)
2321-
2322-
git_remote_add_push(resource,string,string)
2323-
2324-
git_remote_autotag(resource)
2325-
2326-
Returns int
2327-
2328-
git_remote_connect(resource,int,array|null,array|null,array|null)
2329-
2330-
git_remote_connected(resource)
2331-
2332-
Returns bool
2333-
2334-
git_remote_create(resource,string,string)
2335-
2336-
Returns git_remote resource
2337-
2338-
git_remote_create_anonymous(resource,string)
2339-
2340-
Returns git_remote resource
2341-
2342-
git_remote_create_with_fetchspec(resource,string,string,string)
2343-
2344-
Returns git_remote resource
2345-
2346-
git_remote_default_branch(resource)
2347-
2348-
Returns string
2349-
2350-
git_remote_delete(resource,string)
2351-
2352-
git_remote_disconnect(resource)
2353-
2354-
git_remote_download(resource,null|array,array|null)
2355-
2356-
git_remote_dup(resource)
2357-
2358-
Returns git_remote resource
2359-
2360-
git_remote_fetch(resource,array|null,array|null,string|null)
2361-
2362-
git_remote_free(resource)
2363-
2364-
git_remote_get_fetch_refspecs(resource)
2365-
2366-
Returns array
2367-
2368-
git_remote_get_push_refspecs(resource)
2369-
2370-
Returns array
2371-
2372-
git_remote_get_refspec(resource)
2373-
2374-
Returns git_refspec resource
2375-
2376-
git_remote_is_valid_name(string)
2377-
2378-
Returns bool
2379-
2380-
git_remote_list(resource)
2381-
2382-
Returns array
2383-
2384-
git_remote_lookup(resource,string)
2385-
2386-
Returns git_remote resource
2387-
2388-
git_remote_ls(resource)
2389-
2390-
Returns array
2391-
2392-
git_remote_name(resource)
2393-
2394-
Returns string
2395-
2396-
git_remote_owner(resource)
2397-
2398-
Returns git_repository resource
2399-
2400-
git_remote_prune(resource,array|null)
2401-
2402-
git_remote_prune_refs(resource)
2403-
2404-
git_remote_push(resource,array|null,array|null)
2405-
2406-
git_remote_pushurl(resource)
2407-
2408-
git_remote_refspec_count(resource)
2409-
2410-
Returns int
2411-
2412-
git_remote_rename(resource,string,string)
2413-
2414-
Returns array
2415-
2416-
git_remote_set_autotag(resource,string,int)
2417-
2418-
git_remote_set_pushurl(resource,string,string)
2419-
2420-
git_remote_set_url(resource,string,string)
2421-
2422-
git_remote_stats(resource)
2423-
2424-
Returns array
2425-
2426-
git_remote_stop(resource)
2427-
2428-
git_remote_update_tips(resource,array|null,bool,int,string|null)
2429-
2430-
git_remote_upload(resource,array|null,array|null)
2431-
2432-
git_remote_url(resource)
2433-
2434-
Returns string
2435-
24362448
----------------------------------------
24372449
[git_submodule]
24382450
----------------------------------------

Diff for: ‎remote.h

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef PHPGIT2_REMOTE_H
88
#define PHPGIT2_REMOTE_H
99

10+
#include "stubs/remote_arginfo.h"
11+
1012
namespace php_git2
1113
{
1214
// Explicitly specialize git2_resource destructor for git_remote.

Diff for: ‎stubs/remote.stub.php

+202
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
<?php
2+
3+
/**
4+
* @param resource $repo
5+
*/
6+
function git_remote_add_fetch($repo,string $remote,string $refspec) : void {}
7+
8+
/**
9+
* @param resource $repo
10+
*/
11+
function git_remote_add_push($repo,string $remote,string $refspec) : void {}
12+
13+
/**
14+
* @param resource $remote
15+
*/
16+
function git_remote_autotag($remote) : int {}
17+
18+
/**
19+
* @param resource $remote
20+
*/
21+
function git_remote_connect($remote,int $direction,?array $callbacks,?array $proxy_options,?array $custom_headers) : void {}
22+
23+
/**
24+
* @param resource $remote
25+
*/
26+
function git_remote_connected($remote) : bool {}
27+
28+
/**
29+
* @param resource $repo
30+
*
31+
* @return resource
32+
*/
33+
function git_remote_create($repo,string $name,string $url) {}
34+
35+
/**
36+
* @param resource $repo
37+
*
38+
* @return resource
39+
*/
40+
function git_remote_create_anonymous($repo,string $url) {}
41+
42+
/**
43+
* @param resource $repo
44+
*
45+
* @return resource
46+
*/
47+
function git_remote_create_with_fetchspec($repo,string $name,string $url,string $fetchspec) {}
48+
49+
/**
50+
* @param resource $remote
51+
*/
52+
function git_remote_default_branch($remote) : string {}
53+
54+
/**
55+
* @param resource $repo
56+
*/
57+
function git_remote_delete($repo,string $name) : void {}
58+
59+
/**
60+
* @param resource $remote
61+
*/
62+
function git_remote_disconnect($remote) : void {}
63+
64+
/**
65+
* @param resource $remote
66+
*/
67+
function git_remote_download($remote,?array $refspecs,?array $fetch_options) : void {}
68+
69+
/**
70+
* @param resource $remote
71+
*
72+
* @return resource
73+
*/
74+
function git_remote_dup($remote) {}
75+
76+
/**
77+
* @param resource $remote
78+
*/
79+
function git_remote_fetch($remote,?array $refspecs,?array $fetch_options,?string $reflog_message) : void {}
80+
81+
/**
82+
* @param resource $remote
83+
*/
84+
function git_remote_free($remote) : void {}
85+
86+
/**
87+
* @param resource $remote
88+
*/
89+
function git_remote_get_fetch_refspecs($remote) : array {}
90+
91+
/**
92+
* @param resource $remote
93+
*/
94+
function git_remote_get_push_refspecs($remote) : array {}
95+
96+
/**
97+
* @param resource $remote
98+
*
99+
* @return resource
100+
*/
101+
function git_remote_get_refspec($remote,int $n) {}
102+
103+
function git_remote_is_valid_name(string $remote_name) : bool {}
104+
105+
/**
106+
* @param resource $repo
107+
*/
108+
function git_remote_list($repo) : array {}
109+
110+
/**
111+
* @param resource $repo
112+
*
113+
* @return resource
114+
*/
115+
function git_remote_lookup($repo,string $name) {}
116+
117+
/**
118+
* @param resource $remote
119+
*/
120+
function git_remote_ls($remote) : array {}
121+
122+
/**
123+
* @param resource $remote
124+
*/
125+
function git_remote_name($remote) : string {}
126+
127+
/**
128+
* @param resource $remote
129+
*
130+
* @return resource
131+
*/
132+
function git_remote_owner($remote) {}
133+
134+
/**
135+
* @param resource $remote
136+
*/
137+
function git_remote_prune($remote,?array $callbacks) : void {}
138+
139+
/**
140+
* @param resource $remote
141+
*/
142+
function git_remote_prune_refs($remote) : void {}
143+
144+
/**
145+
* @param resource $remote
146+
*/
147+
function git_remote_push($remote,?array $refspecs,?array $push_options) : void {}
148+
149+
/**
150+
* @param resource $remote
151+
*/
152+
function git_remote_pushurl($remote) : string {}
153+
154+
/**
155+
* @param resource $remote
156+
*/
157+
function git_remote_refspec_count($remote) : int {}
158+
159+
/**
160+
* @param resource $repo
161+
*/
162+
function git_remote_rename($repo,string $name,string $new_name) : array {}
163+
164+
/**
165+
* @param resource $repo
166+
*/
167+
function git_remote_set_autotag($repo,string $remote,int $value) : void {}
168+
169+
/**
170+
* @param resource $repo
171+
*/
172+
function git_remote_set_pushurl($repo,string $remote,string $url) : void {}
173+
174+
/**
175+
* @param resource $repo
176+
*/
177+
function git_remote_set_url($repo,string $remote,string $url) : void {}
178+
179+
/**
180+
* @param resource $remote
181+
*/
182+
function git_remote_stats($remote) : array {}
183+
184+
/**
185+
* @param resource $remote
186+
*/
187+
function git_remote_stop($remote) : void {}
188+
189+
/**
190+
* @param resource $remote
191+
*/
192+
function git_remote_update_tips($remote,?array $callbacks,bool $update_fetchhead,int $download_tags,?string $reflog_message) : void {}
193+
194+
/**
195+
* @param resource $remote
196+
*/
197+
function git_remote_upload($remote,?array $refspecs,?array $push_options) : void {}
198+
199+
/**
200+
* @param resource $remote
201+
*/
202+
function git_remote_url($remote) : string {}

Diff for: ‎stubs/remote_arginfo.h

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: a471dc243470601a91af1aad0225ca30dd18e24e */
3+
4+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_add_fetch, 0, 3, IS_VOID, 0)
5+
ZEND_ARG_INFO(0, repo)
6+
ZEND_ARG_TYPE_INFO(0, remote, IS_STRING, 0)
7+
ZEND_ARG_TYPE_INFO(0, refspec, IS_STRING, 0)
8+
ZEND_END_ARG_INFO()
9+
10+
#define arginfo_git_remote_add_push arginfo_git_remote_add_fetch
11+
12+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_autotag, 0, 1, IS_LONG, 0)
13+
ZEND_ARG_INFO(0, remote)
14+
ZEND_END_ARG_INFO()
15+
16+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_connect, 0, 5, IS_VOID, 0)
17+
ZEND_ARG_INFO(0, remote)
18+
ZEND_ARG_TYPE_INFO(0, direction, IS_LONG, 0)
19+
ZEND_ARG_TYPE_INFO(0, callbacks, IS_ARRAY, 1)
20+
ZEND_ARG_TYPE_INFO(0, proxy_options, IS_ARRAY, 1)
21+
ZEND_ARG_TYPE_INFO(0, custom_headers, IS_ARRAY, 1)
22+
ZEND_END_ARG_INFO()
23+
24+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_connected, 0, 1, _IS_BOOL, 0)
25+
ZEND_ARG_INFO(0, remote)
26+
ZEND_END_ARG_INFO()
27+
28+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_create, 0, 0, 3)
29+
ZEND_ARG_INFO(0, repo)
30+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
31+
ZEND_ARG_TYPE_INFO(0, url, IS_STRING, 0)
32+
ZEND_END_ARG_INFO()
33+
34+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_create_anonymous, 0, 0, 2)
35+
ZEND_ARG_INFO(0, repo)
36+
ZEND_ARG_TYPE_INFO(0, url, IS_STRING, 0)
37+
ZEND_END_ARG_INFO()
38+
39+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_create_with_fetchspec, 0, 0, 4)
40+
ZEND_ARG_INFO(0, repo)
41+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
42+
ZEND_ARG_TYPE_INFO(0, url, IS_STRING, 0)
43+
ZEND_ARG_TYPE_INFO(0, fetchspec, IS_STRING, 0)
44+
ZEND_END_ARG_INFO()
45+
46+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_default_branch, 0, 1, IS_STRING, 0)
47+
ZEND_ARG_INFO(0, remote)
48+
ZEND_END_ARG_INFO()
49+
50+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_delete, 0, 2, IS_VOID, 0)
51+
ZEND_ARG_INFO(0, repo)
52+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
53+
ZEND_END_ARG_INFO()
54+
55+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_disconnect, 0, 1, IS_VOID, 0)
56+
ZEND_ARG_INFO(0, remote)
57+
ZEND_END_ARG_INFO()
58+
59+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_download, 0, 3, IS_VOID, 0)
60+
ZEND_ARG_INFO(0, remote)
61+
ZEND_ARG_TYPE_INFO(0, refspecs, IS_ARRAY, 1)
62+
ZEND_ARG_TYPE_INFO(0, fetch_options, IS_ARRAY, 1)
63+
ZEND_END_ARG_INFO()
64+
65+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_dup, 0, 0, 1)
66+
ZEND_ARG_INFO(0, remote)
67+
ZEND_END_ARG_INFO()
68+
69+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_fetch, 0, 4, IS_VOID, 0)
70+
ZEND_ARG_INFO(0, remote)
71+
ZEND_ARG_TYPE_INFO(0, refspecs, IS_ARRAY, 1)
72+
ZEND_ARG_TYPE_INFO(0, fetch_options, IS_ARRAY, 1)
73+
ZEND_ARG_TYPE_INFO(0, reflog_message, IS_STRING, 1)
74+
ZEND_END_ARG_INFO()
75+
76+
#define arginfo_git_remote_free arginfo_git_remote_disconnect
77+
78+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_get_fetch_refspecs, 0, 1, IS_ARRAY, 0)
79+
ZEND_ARG_INFO(0, remote)
80+
ZEND_END_ARG_INFO()
81+
82+
#define arginfo_git_remote_get_push_refspecs arginfo_git_remote_get_fetch_refspecs
83+
84+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_get_refspec, 0, 0, 2)
85+
ZEND_ARG_INFO(0, remote)
86+
ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
87+
ZEND_END_ARG_INFO()
88+
89+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_is_valid_name, 0, 1, _IS_BOOL, 0)
90+
ZEND_ARG_TYPE_INFO(0, remote_name, IS_STRING, 0)
91+
ZEND_END_ARG_INFO()
92+
93+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_list, 0, 1, IS_ARRAY, 0)
94+
ZEND_ARG_INFO(0, repo)
95+
ZEND_END_ARG_INFO()
96+
97+
ZEND_BEGIN_ARG_INFO_EX(arginfo_git_remote_lookup, 0, 0, 2)
98+
ZEND_ARG_INFO(0, repo)
99+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
100+
ZEND_END_ARG_INFO()
101+
102+
#define arginfo_git_remote_ls arginfo_git_remote_get_fetch_refspecs
103+
104+
#define arginfo_git_remote_name arginfo_git_remote_default_branch
105+
106+
#define arginfo_git_remote_owner arginfo_git_remote_dup
107+
108+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_prune, 0, 2, IS_VOID, 0)
109+
ZEND_ARG_INFO(0, remote)
110+
ZEND_ARG_TYPE_INFO(0, callbacks, IS_ARRAY, 1)
111+
ZEND_END_ARG_INFO()
112+
113+
#define arginfo_git_remote_prune_refs arginfo_git_remote_disconnect
114+
115+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_push, 0, 3, IS_VOID, 0)
116+
ZEND_ARG_INFO(0, remote)
117+
ZEND_ARG_TYPE_INFO(0, refspecs, IS_ARRAY, 1)
118+
ZEND_ARG_TYPE_INFO(0, push_options, IS_ARRAY, 1)
119+
ZEND_END_ARG_INFO()
120+
121+
#define arginfo_git_remote_pushurl arginfo_git_remote_default_branch
122+
123+
#define arginfo_git_remote_refspec_count arginfo_git_remote_autotag
124+
125+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_rename, 0, 3, IS_ARRAY, 0)
126+
ZEND_ARG_INFO(0, repo)
127+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
128+
ZEND_ARG_TYPE_INFO(0, new_name, IS_STRING, 0)
129+
ZEND_END_ARG_INFO()
130+
131+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_set_autotag, 0, 3, IS_VOID, 0)
132+
ZEND_ARG_INFO(0, repo)
133+
ZEND_ARG_TYPE_INFO(0, remote, IS_STRING, 0)
134+
ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
135+
ZEND_END_ARG_INFO()
136+
137+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_set_pushurl, 0, 3, IS_VOID, 0)
138+
ZEND_ARG_INFO(0, repo)
139+
ZEND_ARG_TYPE_INFO(0, remote, IS_STRING, 0)
140+
ZEND_ARG_TYPE_INFO(0, url, IS_STRING, 0)
141+
ZEND_END_ARG_INFO()
142+
143+
#define arginfo_git_remote_set_url arginfo_git_remote_set_pushurl
144+
145+
#define arginfo_git_remote_stats arginfo_git_remote_get_fetch_refspecs
146+
147+
#define arginfo_git_remote_stop arginfo_git_remote_disconnect
148+
149+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_git_remote_update_tips, 0, 5, IS_VOID, 0)
150+
ZEND_ARG_INFO(0, remote)
151+
ZEND_ARG_TYPE_INFO(0, callbacks, IS_ARRAY, 1)
152+
ZEND_ARG_TYPE_INFO(0, update_fetchhead, _IS_BOOL, 0)
153+
ZEND_ARG_TYPE_INFO(0, download_tags, IS_LONG, 0)
154+
ZEND_ARG_TYPE_INFO(0, reflog_message, IS_STRING, 1)
155+
ZEND_END_ARG_INFO()
156+
157+
#define arginfo_git_remote_upload arginfo_git_remote_push
158+
159+
#define arginfo_git_remote_url arginfo_git_remote_default_branch

Diff for: ‎stubs/tmp.h

-114
Original file line numberDiff line numberDiff line change
@@ -301,120 +301,6 @@ ZEND_END_ARG_INFO()
301301
ZEND_BEGIN_ARG_INFO(arginfo_git_stash_save,{})
302302
ZEND_END_ARG_INFO()
303303

304-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_add_fetch,{})
305-
ZEND_END_ARG_INFO()
306-
307-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_add_push,{})
308-
ZEND_END_ARG_INFO()
309-
310-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_autotag,{})
311-
ZEND_END_ARG_INFO()
312-
313-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_connect,{})
314-
ZEND_END_ARG_INFO()
315-
316-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_connected,{})
317-
ZEND_END_ARG_INFO()
318-
319-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_create,{})
320-
ZEND_END_ARG_INFO()
321-
322-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_create_anonymous,{})
323-
ZEND_END_ARG_INFO()
324-
325-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_create_with_fetchspec,{})
326-
ZEND_END_ARG_INFO()
327-
328-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_default_branch,{})
329-
ZEND_END_ARG_INFO()
330-
331-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_delete,{})
332-
ZEND_END_ARG_INFO()
333-
334-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_disconnect,{})
335-
ZEND_END_ARG_INFO()
336-
337-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_download,{})
338-
ZEND_END_ARG_INFO()
339-
340-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_dup,{})
341-
ZEND_END_ARG_INFO()
342-
343-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_fetch,{})
344-
ZEND_END_ARG_INFO()
345-
346-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_free,{})
347-
ZEND_END_ARG_INFO()
348-
349-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_get_fetch_refspecs,{})
350-
ZEND_END_ARG_INFO()
351-
352-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_get_push_refspecs,{})
353-
ZEND_END_ARG_INFO()
354-
355-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_get_refspec,{})
356-
ZEND_END_ARG_INFO()
357-
358-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_is_valid_name,{})
359-
ZEND_END_ARG_INFO()
360-
361-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_list,{})
362-
ZEND_END_ARG_INFO()
363-
364-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_lookup,{})
365-
ZEND_END_ARG_INFO()
366-
367-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_ls,{})
368-
ZEND_END_ARG_INFO()
369-
370-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_name,{})
371-
ZEND_END_ARG_INFO()
372-
373-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_owner,{})
374-
ZEND_END_ARG_INFO()
375-
376-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_prune,{})
377-
ZEND_END_ARG_INFO()
378-
379-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_prune_refs,{})
380-
ZEND_END_ARG_INFO()
381-
382-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_push,{})
383-
ZEND_END_ARG_INFO()
384-
385-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_pushurl,{})
386-
ZEND_END_ARG_INFO()
387-
388-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_refspec_count,{})
389-
ZEND_END_ARG_INFO()
390-
391-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_rename,{})
392-
ZEND_END_ARG_INFO()
393-
394-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_set_autotag,{})
395-
ZEND_END_ARG_INFO()
396-
397-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_set_pushurl,{})
398-
ZEND_END_ARG_INFO()
399-
400-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_set_url,{})
401-
ZEND_END_ARG_INFO()
402-
403-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_stats,{})
404-
ZEND_END_ARG_INFO()
405-
406-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_stop,{})
407-
ZEND_END_ARG_INFO()
408-
409-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_update_tips,{})
410-
ZEND_END_ARG_INFO()
411-
412-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_upload,{})
413-
ZEND_END_ARG_INFO()
414-
415-
ZEND_BEGIN_ARG_INFO(arginfo_git_remote_url,{})
416-
ZEND_END_ARG_INFO()
417-
418304
ZEND_BEGIN_ARG_INFO(arginfo_git_submodule_add_finalize,{})
419305
ZEND_END_ARG_INFO()
420306

0 commit comments

Comments
 (0)
Please sign in to comment.