summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-17 21:38:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-17 21:38:25 (GMT)
commite059388fb200fb2b5281ce211242ef3525a9c2c7 (patch)
tree6cfe78227a92d42cce7c5c34521750af249766e0 /submodule.h
parent7a7d0854ff3cb1bc5b95e9295b9c11089d9a75a6 (diff)
parent89044baa8b8a14b48e78a42ebdc43cfcd144ce28 (diff)
downloadgit-e059388fb200fb2b5281ce211242ef3525a9c2c7.zip
git-e059388fb200fb2b5281ce211242ef3525a9c2c7.tar.gz
git-e059388fb200fb2b5281ce211242ef3525a9c2c7.tar.bz2
Merge branch 'jk/submodule-c-credential'
An earlier addition of "sanitize_submodule_env" with 14111fc4 (git: submodule honor -c credential.* from command line, 2016-02-29) turned out to be a convoluted no-op; implement what it wanted to do correctly, and stop filtering settings given via "git -c var=val". * jk/submodule-c-credential: submodule: stop sanitizing config options submodule: use prepare_submodule_repo_env consistently submodule--helper: move config-sanitizing to submodule.c submodule: export sanitized GIT_CONFIG_PARAMETERS t5550: break submodule config test into multiple sub-tests t5550: fix typo in $HTTPD_URL
Diffstat (limited to 'submodule.h')
-rw-r--r--submodule.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/submodule.h b/submodule.h
index ff4c4f3..2af9390 100644
--- a/submodule.h
+++ b/submodule.h
@@ -62,4 +62,11 @@ int push_unpushed_submodules(unsigned char new_sha1[20], const char *remotes_nam
void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
int parallel_submodules(void);
+/*
+ * Prepare the "env_array" parameter of a "struct child_process" for executing
+ * a submodule by clearing any repo-specific envirionment variables, but
+ * retaining any config in the environment.
+ */
+void prepare_submodule_repo_env(struct argv_array *out);
+
#endif