Johannes Schindelin | 752c0c2 | 2009-10-19 14:38:32 +0200 | [diff] [blame] | 1 | #ifndef SUBMODULE_H |
| 2 | #define SUBMODULE_H |
| 3 | |
Jens Lehmann | 46a958b | 2010-06-25 16:56:47 +0200 | [diff] [blame] | 4 | struct diff_options; |
| 5 | |
Jens Lehmann | 88a2197 | 2011-03-06 23:10:46 +0100 | [diff] [blame] | 6 | enum { |
| 7 | RECURSE_SUBMODULES_ON_DEMAND = -1, |
| 8 | RECURSE_SUBMODULES_OFF = 0, |
| 9 | RECURSE_SUBMODULES_DEFAULT = 1, |
| 10 | RECURSE_SUBMODULES_ON = 2 |
| 11 | }; |
| 12 | |
Jens Lehmann | aee9c7d | 2010-08-06 00:39:25 +0200 | [diff] [blame] | 13 | void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt, |
| 14 | const char *path); |
Jens Lehmann | 7dce19d | 2010-11-12 13:54:52 +0100 | [diff] [blame] | 15 | int submodule_config(const char *var, const char *value, void *cb); |
Jens Lehmann | 302ad7a | 2010-08-06 00:40:48 +0200 | [diff] [blame] | 16 | void gitmodules_config(); |
Jens Lehmann | aee9c7d | 2010-08-06 00:39:25 +0200 | [diff] [blame] | 17 | int parse_submodule_config_option(const char *var, const char *value); |
Jens Lehmann | 46a958b | 2010-06-25 16:56:47 +0200 | [diff] [blame] | 18 | void handle_ignore_submodules_arg(struct diff_options *diffopt, const char *); |
Jens Lehmann | 88a2197 | 2011-03-06 23:10:46 +0100 | [diff] [blame] | 19 | int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg); |
Johannes Schindelin | 752c0c2 | 2009-10-19 14:38:32 +0200 | [diff] [blame] | 20 | void show_submodule_summary(FILE *f, const char *path, |
| 21 | unsigned char one[20], unsigned char two[20], |
Jens Lehmann | 721ceec | 2010-01-24 15:09:00 +0100 | [diff] [blame] | 22 | unsigned dirty_submodule, |
Johannes Schindelin | 752c0c2 | 2009-10-19 14:38:32 +0200 | [diff] [blame] | 23 | const char *del, const char *add, const char *reset); |
Jens Lehmann | be254a0 | 2010-11-11 00:55:02 +0100 | [diff] [blame] | 24 | void set_config_fetch_recurse_submodules(int value); |
Jens Lehmann | 88a2197 | 2011-03-06 23:10:46 +0100 | [diff] [blame] | 25 | void check_for_new_submodule_commits(unsigned char new_sha1[20]); |
Jens Lehmann | 7dce19d | 2010-11-12 13:54:52 +0100 | [diff] [blame] | 26 | int fetch_populated_submodules(int num_options, const char **options, |
Jens Lehmann | 8f0700d | 2011-03-06 23:11:21 +0100 | [diff] [blame] | 27 | const char *prefix, int command_line_option, |
Jens Lehmann | be254a0 | 2010-11-11 00:55:02 +0100 | [diff] [blame] | 28 | int quiet); |
Jens Lehmann | 3bfc450 | 2010-03-13 23:00:27 +0100 | [diff] [blame] | 29 | unsigned is_submodule_modified(const char *path, int ignore_untracked); |
Heiko Voigt | 68d03e4 | 2010-07-07 15:39:13 +0200 | [diff] [blame] | 30 | int 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]); |
Johannes Schindelin | 752c0c2 | 2009-10-19 14:38:32 +0200 | [diff] [blame] | 32 | |
| 33 | #endif |