|
26 | 26 | #endif |
27 | 27 | #endif |
28 | 28 |
|
| 29 | +#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*x)) |
29 | 30 | #define UNUSED(x) (void)(x) |
30 | 31 |
|
| 32 | +extern int lg2_add(git_repository *repo, int argc, char **argv); |
| 33 | +extern int lg2_blame(git_repository *repo, int argc, char **argv); |
| 34 | +extern int lg2_cat_file(git_repository *repo, int argc, char **argv); |
| 35 | +extern int lg2_checkout(git_repository *repo, int argc, char **argv); |
| 36 | +extern int lg2_clone(git_repository *repo, int argc, char **argv); |
| 37 | +extern int lg2_describe(git_repository *repo, int argc, char **argv); |
| 38 | +extern int lg2_diff(git_repository *repo, int argc, char **argv); |
| 39 | +extern int lg2_fetch(git_repository *repo, int argc, char **argv); |
| 40 | +extern int lg2_for_each_ref(git_repository *repo, int argc, char **argv); |
| 41 | +extern int lg2_general(git_repository *repo, int argc, char **argv); |
| 42 | +extern int lg2_index_pack(git_repository *repo, int argc, char **argv); |
| 43 | +extern int lg2_init(git_repository *repo, int argc, char **argv); |
| 44 | +extern int lg2_log(git_repository *repo, int argc, char **argv); |
| 45 | +extern int lg2_ls_files(git_repository *repo, int argc, char **argv); |
| 46 | +extern int lg2_ls_remote(git_repository *repo, int argc, char **argv); |
| 47 | +extern int lg2_merge(git_repository *repo, int argc, char **argv); |
| 48 | +extern int lg2_remote(git_repository *repo, int argc, char **argv); |
| 49 | +extern int lg2_rev_list(git_repository *repo, int argc, char **argv); |
| 50 | +extern int lg2_rev_parse(git_repository *repo, int argc, char **argv); |
| 51 | +extern int lg2_show_index(git_repository *repo, int argc, char **argv); |
| 52 | +extern int lg2_status(git_repository *repo, int argc, char **argv); |
| 53 | +extern int lg2_tag(git_repository *repo, int argc, char **argv); |
| 54 | + |
31 | 55 | /** |
32 | 56 | * Check libgit2 error code, printing error to stderr on failure and |
33 | 57 | * exiting the program. |
@@ -142,8 +166,3 @@ extern int cred_acquire_cb(git_cred **out, |
142 | 166 | const char *username_from_url, |
143 | 167 | unsigned int allowed_types, |
144 | 168 | void *payload); |
145 | | - |
146 | | -extern int ls_remote(git_repository *repo, int argc, char **argv); |
147 | | -extern int fetch(git_repository *repo, int argc, char **argv); |
148 | | -extern int index_pack(git_repository *repo, int argc, char **argv); |
149 | | -extern int do_clone(git_repository *repo, int argc, char **argv); |
|
0 commit comments