submodule.hon commit Merge branch 'jc/diff-stat-scaler' into maint (a67c235)
   1#ifndef SUBMODULE_H
   2#define SUBMODULE_H
   3
   4struct diff_options;
   5
   6enum {
   7        RECURSE_SUBMODULES_ON_DEMAND = -1,
   8        RECURSE_SUBMODULES_OFF = 0,
   9        RECURSE_SUBMODULES_DEFAULT = 1,
  10        RECURSE_SUBMODULES_ON = 2
  11};
  12
  13void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt,
  14                const char *path);
  15int submodule_config(const char *var, const char *value, void *cb);
  16void gitmodules_config();
  17int parse_submodule_config_option(const char *var, const char *value);
  18void handle_ignore_submodules_arg(struct diff_options *diffopt, const char *);
  19int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg);
  20void show_submodule_summary(FILE *f, const char *path,
  21                unsigned char one[20], unsigned char two[20],
  22                unsigned dirty_submodule,
  23                const char *del, const char *add, const char *reset);
  24void set_config_fetch_recurse_submodules(int value);
  25void check_for_new_submodule_commits(unsigned char new_sha1[20]);
  26int fetch_populated_submodules(int num_options, const char **options,
  27                               const char *prefix, int command_line_option,
  28                               int quiet);
  29unsigned is_submodule_modified(const char *path, int ignore_untracked);
  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], int search);
  32int check_submodule_needs_pushing(unsigned char new_sha1[20], const char *remotes_name);
  33
  34#endif