Browse Source

Merge branch 'pb/submodule-recurse-mode-enum'

Small code clean-up.

* pb/submodule-recurse-mode-enum:
  submodule.h: use a named enum for RECURSE_SUBMODULES_*
pull/1273/head
Junio C Hamano 3 months ago
parent
commit
ee0241bd22
  1. 2
      submodule-config.h
  2. 2
      submodule.h

2
submodule-config.h

@ -38,7 +38,7 @@ struct submodule {
const char *path;
const char *name;
const char *url;
int fetch_recurse;
enum submodule_recurse_mode fetch_recurse;
const char *ignore;
const char *branch;
struct submodule_update_strategy update_strategy;

2
submodule.h

@ -13,7 +13,7 @@ struct repository;
struct string_list;
struct strbuf;
enum {
enum submodule_recurse_mode {
RECURSE_SUBMODULES_ONLY = -5,
RECURSE_SUBMODULES_CHECK = -4,
RECURSE_SUBMODULES_ERROR = -3,

Loading…
Cancel
Save