mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Move statement after declarations in add example.
This commit is contained in:
parent
9a0e42c673
commit
04fd266584
@ -31,11 +31,10 @@ void init_array(git_strarray *array, int argc, char **argv)
|
|||||||
|
|
||||||
int print_matched_cb(const char *path, const char *matched_pathspec, void *payload)
|
int print_matched_cb(const char *path, const char *matched_pathspec, void *payload)
|
||||||
{
|
{
|
||||||
(void)matched_pathspec;
|
|
||||||
|
|
||||||
struct print_payload p = *(struct print_payload*)(payload);
|
struct print_payload p = *(struct print_payload*)(payload);
|
||||||
int ret;
|
int ret;
|
||||||
git_status_t status;
|
git_status_t status;
|
||||||
|
(void)matched_pathspec;
|
||||||
|
|
||||||
if (git_status_file(&status, p.repo, path)) {
|
if (git_status_file(&status, p.repo, path)) {
|
||||||
return -1; //abort
|
return -1; //abort
|
||||||
|
Loading…
Reference in New Issue
Block a user