summaryrefslogtreecommitdiff
path: root/submodule-config.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-05-26 14:59:42 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-27 10:40:45 -0700
commit37f52e93441e1da00c9c9824ed03cd074d77f43a (patch)
tree778ea059c537026a4444b06b666b0831b2a5c860 /submodule-config.h
parent7777322816a31edff4fb9f429847d11f8974f264 (diff)
downloadgit-37f52e93441e1da00c9c9824ed03cd074d77f43a.tar.gz
submodule-config: keep shallow recommendation around
The shallow field will be used in a later patch by `submodule update`. To differentiate between the actual depth (which may be different), we name it `recommend_shallow` as the field in the .gitmodules file is only a recommendation by the project. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.h')
-rw-r--r--submodule-config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h
index e4857f53a8..b1fdcc0c33 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -18,6 +18,7 @@ struct submodule {
struct submodule_update_strategy update_strategy;
/* the sha1 blob id of the responsible .gitmodules file */
unsigned char gitmodules_sha1[20];
+ int recommend_shallow;
};
int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg);