diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-07-17 19:00:11 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-20 11:29:51 -0700 |
commit | ae2a38271f778522ceb9182b94e0024a816e3338 (patch) | |
tree | 778019ace5095c32e751af820b830b0720ac1ceb /log-tree.c | |
parent | worktree: make branch creation distinct from worktree population (diff) | |
download | tgif-ae2a38271f778522ceb9182b94e0024a816e3338.tar.xz |
worktree: elucidate environment variables intended for child processes
Take advantage of 'struct child_process.env' to make it obvious that
environment variables set by add_worktree() are intended specifically
for sub-commands it invokes to operate in the new worktree.
We assign a local 'struct argv_array' to child_process.env, rather than
utilizing the child_process.env_array 'struct argv_array', because
future patches will make add_worktree() invoke additional sub-commands,
and it's simpler to populate the environment array just once, whereas
child_process.env_array gets cleared after each invocation, thus would
require re-population for each sub-command.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions