diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-06-02 11:09:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-02 23:31:27 +0200 |
commit | b3193252c4278e9039fbb896a35f84abc1fb5aac (patch) | |
tree | 5d45de5926140db39554d062207cca36d7e284d2 /submodule.h | |
parent | run-command API: rename "env_array" to "env" (diff) | |
download | git-b3193252c4278e9039fbb896a35f84abc1fb5aac.tar.xz git-b3193252c4278e9039fbb896a35f84abc1fb5aac.zip |
run-command API users: use "env" not "env_array" in comments & names
Follow-up on a preceding commit which changed all references to the
"env_array" when referring to the "struct child_process" member. These
changes are all unnecessary for the compiler, but help the code's
human readers.
All the comments that referred to "env_array" have now been updated,
as well as function names and variables that had "env_array" in their
name, they now refer to "env".
In addition the "out" name for the submodule.h prototype was
inconsistent with the function definition's use of "env_array" in
submodule.c. Both of them use "env" now.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule.h b/submodule.h index 40c1445237..2ac7a04e72 100644 --- a/submodule.h +++ b/submodule.h @@ -158,11 +158,11 @@ int submodule_move_head(const char *path, void submodule_unset_core_worktree(const struct submodule *sub); /* - * Prepare the "env_array" parameter of a "struct child_process" for executing + * Prepare the "env" parameter of a "struct child_process" for executing * a submodule by clearing any repo-specific environment variables, but * retaining any config in the environment. */ -void prepare_submodule_repo_env(struct strvec *out); +void prepare_submodule_repo_env(struct strvec *env); #define ABSORB_GITDIR_RECURSE_SUBMODULES (1<<0) void absorb_git_dir_into_superproject(const char *path, |