diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-20 22:26:53 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-20 22:26:53 (GMT) |
commit | ee0241bd224d3c106701876d1cceecf17b6039e3 (patch) | |
tree | 207a474e5d7946a91cfeba3009c800464d4ca8b7 | |
parent | 0a88638b0b2f52f588c21de3c0a8af6b49a2e540 (diff) | |
parent | 465b30a92d4c2c76e434790bdf487d57547a6cc4 (diff) | |
download | git-ee0241bd224d3c106701876d1cceecf17b6039e3.zip git-ee0241bd224d3c106701876d1cceecf17b6039e3.tar.gz git-ee0241bd224d3c106701876d1cceecf17b6039e3.tar.bz2 |
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_*
-rw-r--r-- | submodule-config.h | 2 | ||||
-rw-r--r-- | submodule.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/submodule-config.h b/submodule-config.h index fa229a8..28a8ca6 100644 --- a/submodule-config.h +++ b/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; diff --git a/submodule.h b/submodule.h index 40c1445..437bc96 100644 --- a/submodule.h +++ b/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, |