summaryrefslogtreecommitdiff
path: root/connected.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-10-03 20:49:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-10 20:54:02 (GMT)
commit526f108a271b331af9ae92796215e560e5ec4677 (patch)
tree2d8dbf7653b02509fc22c9f0e7568c67812cea43 /connected.h
parentea0fc3b4176a424a2b20eb76a6a503dc4d59cebb (diff)
downloadgit-526f108a271b331af9ae92796215e560e5ec4677.zip
git-526f108a271b331af9ae92796215e560e5ec4677.tar.gz
git-526f108a271b331af9ae92796215e560e5ec4677.tar.bz2
check_connected: accept an env argument
This lets callers influence the environment seen by rev-list, which will be useful when we start providing quarantined objects. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connected.h')
-rw-r--r--connected.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/connected.h b/connected.h
index afa48cc..4ca325f 100644
--- a/connected.h
+++ b/connected.h
@@ -33,6 +33,11 @@ struct check_connected_options {
/* If non-zero, show progress as we traverse the objects. */
int progress;
+
+ /*
+ * Insert these variables into the environment of the child process.
+ */
+ const char **env;
};
#define CHECK_CONNECTED_INIT { 0 }