2009-10-19 14:38:32 +02:00
|
|
|
#ifndef SUBMODULE_H
|
|
|
|
#define SUBMODULE_H
|
|
|
|
|
2010-06-25 16:56:47 +02:00
|
|
|
struct diff_options;
|
|
|
|
|
2011-03-06 23:10:46 +01:00
|
|
|
enum {
|
|
|
|
RECURSE_SUBMODULES_ON_DEMAND = -1,
|
|
|
|
RECURSE_SUBMODULES_OFF = 0,
|
|
|
|
RECURSE_SUBMODULES_DEFAULT = 1,
|
|
|
|
RECURSE_SUBMODULES_ON = 2
|
|
|
|
};
|
|
|
|
|
2010-08-06 00:39:25 +02:00
|
|
|
void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt,
|
|
|
|
const char *path);
|
2010-11-12 13:54:52 +01:00
|
|
|
int submodule_config(const char *var, const char *value, void *cb);
|
2012-04-10 21:10:26 +02:00
|
|
|
void gitmodules_config(void);
|
2010-08-06 00:39:25 +02:00
|
|
|
int parse_submodule_config_option(const char *var, const char *value);
|
2010-06-25 16:56:47 +02:00
|
|
|
void handle_ignore_submodules_arg(struct diff_options *diffopt, const char *);
|
2011-03-06 23:10:46 +01:00
|
|
|
int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg);
|
2009-10-19 14:38:32 +02:00
|
|
|
void show_submodule_summary(FILE *f, const char *path,
|
|
|
|
unsigned char one[20], unsigned char two[20],
|
2010-01-24 15:09:00 +01:00
|
|
|
unsigned dirty_submodule,
|
2009-10-19 14:38:32 +02:00
|
|
|
const char *del, const char *add, const char *reset);
|
2010-11-11 00:55:02 +01:00
|
|
|
void set_config_fetch_recurse_submodules(int value);
|
2011-03-06 23:10:46 +01:00
|
|
|
void check_for_new_submodule_commits(unsigned char new_sha1[20]);
|
2010-11-12 13:54:52 +01:00
|
|
|
int fetch_populated_submodules(int num_options, const char **options,
|
2011-03-06 23:11:21 +01:00
|
|
|
const char *prefix, int command_line_option,
|
2010-11-11 00:55:02 +01:00
|
|
|
int quiet);
|
2010-03-13 23:00:27 +01:00
|
|
|
unsigned is_submodule_modified(const char *path, int ignore_untracked);
|
2010-07-07 15:39:13 +02:00
|
|
|
int merge_submodule(unsigned char result[20], const char *path, const unsigned char base[20],
|
2011-10-13 14:59:05 +02:00
|
|
|
const unsigned char a[20], const unsigned char b[20], int search);
|
2012-03-29 09:21:23 +02:00
|
|
|
int find_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_name,
|
|
|
|
struct string_list *needs_pushing);
|
2012-03-29 09:21:24 +02:00
|
|
|
int push_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_name);
|
2009-10-19 14:38:32 +02:00
|
|
|
|
|
|
|
#endif
|