aboutsummaryrefslogtreecommitdiff
path: root/submodule-config.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-02-29 18:07:11 -0800
committerJunio C Hamano <gitster@pobox.com>2016-03-01 11:57:17 -0800
commitea2fa5a3388281b880ae2aa75c8eac0d4b1a6c69 (patch)
tree58f08091493d1d942a21f04ee6f7b8219f4224bf /submodule-config.h
parent2a73b3dad09ef162eb5917e9e0d01d7c306f6b35 (diff)
downloadgit-ea2fa5a3388281b880ae2aa75c8eac0d4b1a6c69.tar.gz
git-ea2fa5a3388281b880ae2aa75c8eac0d4b1a6c69.tar.xz
submodule-config: keep update strategy around
Currently submodule.<name>.update is only handled by git-submodule.sh. C code will start to need to make use of that value as more of the functionality of git-submodule.sh moves into library code in C. Add the update field to 'struct submodule' and populate it so it can be read as sm->update or from sm->update_command. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h
index 9061e4ed3..092ebfc93 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -2,6 +2,7 @@
#define SUBMODULE_CONFIG_CACHE_H
#include "hashmap.h"
+#include "submodule.h"
#include "strbuf.h"
/*
@@ -14,6 +15,7 @@ struct submodule {
const char *url;
int fetch_recurse;
const char *ignore;
+ struct submodule_update_strategy update_strategy;
/* the sha1 blob id of the responsible .gitmodules file */
unsigned char gitmodules_sha1[20];
};