fetch/pull: recurse into submodules when necessary
[git/git.git] / submodule.h
CommitLineData
752c0c24
JS
1#ifndef SUBMODULE_H
2#define SUBMODULE_H
3
46a958b3
JL
4struct diff_options;
5
88a21979
JL
6enum {
7 RECURSE_SUBMODULES_ON_DEMAND = -1,
8 RECURSE_SUBMODULES_OFF = 0,
9 RECURSE_SUBMODULES_DEFAULT = 1,
10 RECURSE_SUBMODULES_ON = 2
11};
12
aee9c7d6
JL
13void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt,
14 const char *path);
7dce19d3 15int submodule_config(const char *var, const char *value, void *cb);
302ad7a9 16void gitmodules_config();
aee9c7d6 17int parse_submodule_config_option(const char *var, const char *value);
46a958b3 18void handle_ignore_submodules_arg(struct diff_options *diffopt, const char *);
88a21979 19int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg);
752c0c24
JS
20void show_submodule_summary(FILE *f, const char *path,
21 unsigned char one[20], unsigned char two[20],
721ceec1 22 unsigned dirty_submodule,
752c0c24 23 const char *del, const char *add, const char *reset);
be254a0e 24void set_config_fetch_recurse_submodules(int value);
88a21979 25void check_for_new_submodule_commits(unsigned char new_sha1[20]);
7dce19d3 26int fetch_populated_submodules(int num_options, const char **options,
be254a0e
JL
27 const char *prefix, int ignore_config,
28 int quiet);
3bfc4504 29unsigned is_submodule_modified(const char *path, int ignore_untracked);
68d03e4a
HV
30int merge_submodule(unsigned char result[20], const char *path, const unsigned char base[20],
31 const unsigned char a[20], const unsigned char b[20]);
752c0c24
JS
32
33#endif