summaryrefslogtreecommitdiff
path: root/submodule-config.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-07-28 17:44:07 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-01 14:42:07 -0700
commitb5944f3476dbaee15649b0fa02b2b35aaa149dc3 (patch)
treea8ff78ce512ce89c3723455329bd0064642697c7 /submodule-config.h
parent2de26ae1dc89236ff5d0d0657b0eb884b6c331b5 (diff)
downloadgit-b5944f3476dbaee15649b0fa02b2b35aaa149dc3.tar.gz
submodule-config: keep configured branch around
The branch field will be used in a later patch by `submodule update`. 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 b1fdcc0c33..d05c542d2c 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -15,6 +15,7 @@ struct submodule {
const char *url;
int fetch_recurse;
const char *ignore;
+ const char *branch;
struct submodule_update_strategy update_strategy;
/* the sha1 blob id of the responsible .gitmodules file */
unsigned char gitmodules_sha1[20];