@@ -2186,6 +2186,55 @@ void git_stash_pop(resource $repo,int $index,?array $stash_apply_options)
2186
2186
2187
2187
string git_stash_save(resource $repo,resource $signature,string $message,int $flags)
2188
2188
2189
+ ----------------------------------------
2190
+ [git_status]
2191
+ ----------------------------------------
2192
+
2193
+ array git_status_byindex(resource $statuslist,int $idx)
2194
+
2195
+ ** The return array has the following structure: **
2196
+
2197
+ array(3) {
2198
+ ["status"]
2199
+ ["head_to_index"]
2200
+ // git_diff_delta array
2201
+ ["index_to_workdir"]
2202
+ // git_diff_delta array
2203
+ }
2204
+
2205
+ Returns a git_status_entry array
2206
+
2207
+ ?int|bool git_status_file(resource $repo,string $path)
2208
+
2209
+ The function returns:
2210
+
2211
+ - int: if the path was successfully found, the return value is an
2212
+ integer bitmask containing the status flags
2213
+ - null: the path was ambiguous
2214
+ - false: the path was not found
2215
+
2216
+ void git_status_foreach(resource $repo,callable $callback,mixed $payload)
2217
+
2218
+ Callback signature: void callback(string $path,int $status_flag,mixed $payload)
2219
+
2220
+ The function should throw on error.
2221
+
2222
+ void git_status_foreach_ext(resource $repo,?array $status_options,callable $callback,mixed $payload)
2223
+
2224
+ See notes on git_status_foreach() for callback signature.
2225
+
2226
+ int git_status_list_entrycount(resource $statuslist)
2227
+
2228
+ void git_status_list_free(resource $statuslist)
2229
+
2230
+ array git_status_list_get_perfdata(resource $statuslist)
2231
+
2232
+ resource git_status_list_new(resource $repo,?array $status_options)
2233
+
2234
+ Returns git_status_list resource
2235
+
2236
+ bool git_status_should_ignore(resource $repo,string $path)
2237
+
2189
2238
----------------------------------------
2190
2239
[git_tree]
2191
2240
[git_tree_entry]
@@ -2403,65 +2452,6 @@ git_trace_set(int)
2403
2452
** NOTE: this function uses the standard PHP error log to write traces. This
2404
2453
only works if your libgit2 was built with tracing enabled. **
2405
2454
2406
- ----------------------------------------
2407
- [git_status]
2408
- ----------------------------------------
2409
-
2410
- git_status_byindex(resource,int)
2411
-
2412
- ** The return array has the following structure: **
2413
-
2414
- array(3) {
2415
- ["status"]
2416
- ["head_to_index"]
2417
- // git_diff_delta array
2418
- ["index_to_workdir"]
2419
- // git_diff_delta array
2420
- }
2421
-
2422
- Returns array
2423
-
2424
- git_status_file(resource,string)
2425
-
2426
- The function returns:
2427
-
2428
- - int: if the path was successfully found, the return value is an
2429
- integer bitmask containing the status flags
2430
- - null: the path was ambiguous
2431
- - false: the path was not found
2432
-
2433
- Returns mixed
2434
-
2435
- git_status_foreach(resource,callable,mixed)
2436
-
2437
- Callback signature: void callback(string $path,int $status_flag,mixed $payload)
2438
-
2439
- The function should throw on error.
2440
-
2441
- git_status_foreach_ext(resource,array,callable,mixed)
2442
-
2443
- See notes on git_status_foreach() for callback signature.
2444
-
2445
- git_status_list_entrycount(resource)
2446
-
2447
- Returns int
2448
-
2449
- git_status_list_free(resource)
2450
-
2451
- git_status_list_get_perfdata(resource)
2452
-
2453
- Returns array
2454
-
2455
- git_status_list_new(resource,array|null)
2456
-
2457
- ** Note: The options array is optional. **
2458
-
2459
- Returns resource
2460
-
2461
- git_status_should_ignore(resource,string)
2462
-
2463
- Returns bool
2464
-
2465
2455
----------------------------------------
2466
2456
[git_submodule]
2467
2457
----------------------------------------
0 commit comments