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_*
This commit is contained in:
Junio C Hamano 2022-05-20 15:26:53 -07:00
commit ee0241bd22
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,