Skip to content

Commit bda601a

Browse files
committed
Import submodule_update related options.
1 parent 5c96a46 commit bda601a

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pygit2/decl.h

+17-3
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ int git_refspec_dst_matches(const git_refspec *refspec, const char *refname);
306306
int git_refspec_transform(git_buf *buf, const git_refspec *spec, const char *name);
307307
int git_refspec_rtransform(git_buf *buf, const git_refspec *spec, const char *name);
308308

309-
int git_cred_username_new(
310-
git_cred **out,
311-
const char *username);
312309
int git_cred_userpass_plaintext_new(
313310
git_cred **out,
314311
const char *username,
@@ -645,6 +642,23 @@ int git_graph_ahead_behind(size_t *ahead, size_t *behind, git_repository *repo,
645642
* git_submodule
646643
*/
647644

645+
typedef struct git_submodule_update_options {
646+
unsigned int version;
647+
git_checkout_options checkout_opts;
648+
git_fetch_options fetch_opts;
649+
int allow_fetch;
650+
} git_submodule_update_options;
651+
652+
#define GIT_SUBMODULE_UPDATE_OPTIONS_VERSION ...
653+
654+
int git_submodule_update_init_options(
655+
git_submodule_update_options *opts,
656+
unsigned int version);
657+
int git_submodule_update(
658+
git_submodule *submodule,
659+
int init,
660+
git_submodule_update_options *options);
661+
648662
int git_submodule_lookup(git_submodule **out, git_repository *repo, char *path);
649663
void git_submodule_free(git_submodule *subm);
650664
int git_submodule_open(git_repository **out, git_submodule *subm);

0 commit comments

Comments
 (0)