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>
This commit is contained in:
committed by
Junio C Hamano
parent
2a73b3dad0
commit
ea2fa5a338
@ -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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user