2009-10-19 20:38:32 +08:00
|
|
|
#ifndef SUBMODULE_H
|
|
|
|
#define SUBMODULE_H
|
|
|
|
|
2010-06-25 22:56:47 +08:00
|
|
|
struct diff_options;
|
|
|
|
|
2010-08-06 06:39:25 +08:00
|
|
|
void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt,
|
|
|
|
const char *path);
|
2010-08-06 06:40:48 +08:00
|
|
|
void gitmodules_config();
|
2010-08-06 06:39:25 +08:00
|
|
|
int parse_submodule_config_option(const char *var, const char *value);
|
2010-06-25 22:56:47 +08:00
|
|
|
void handle_ignore_submodules_arg(struct diff_options *diffopt, const char *);
|
2009-10-19 20:38:32 +08:00
|
|
|
void show_submodule_summary(FILE *f, const char *path,
|
|
|
|
unsigned char one[20], unsigned char two[20],
|
2010-01-24 22:09:00 +08:00
|
|
|
unsigned dirty_submodule,
|
2009-10-19 20:38:32 +08:00
|
|
|
const char *del, const char *add, const char *reset);
|
2010-03-14 06:00:27 +08:00
|
|
|
unsigned is_submodule_modified(const char *path, int ignore_untracked);
|
2010-07-07 21:39:13 +08:00
|
|
|
int merge_submodule(unsigned char result[20], const char *path, const unsigned char base[20],
|
|
|
|
const unsigned char a[20], const unsigned char b[20]);
|
2009-10-19 20:38:32 +08:00
|
|
|
|
|
|
|
#endif
|