diff mbox series

[v2,1/4] cocci: add a rename of "struct child_process"'s "env_array" to "env"

Message ID patch-v2-1.4-e3f33fce566-20220520T072122Z-avarab@gmail.com (mailing list archive)
State Superseded
Headers show
Series run-command.h: rename "env_array" to "env" | expand

Commit Message

Ævar Arnfjörð Bjarmason May 20, 2022, 7:24 a.m. UTC
Start following-up on the rename mentioned in c7c4bdeccf3 (run-command
API: remove "env" member, always use "env_array", 2021-11-25) of
"env_array" to "env".

The "env_array" name was picked in 19a583dc39e (run-command: add
env_array, an optional argv_array for env, 2014-10-19) because "env"
was taken. Let's not forever keep the oddity of "*_array" for this
"struct strvec", but not for its "args" sibling.

This is added as a "pending" migration because it'll need a couple of
manual changes to go along with it, those will be performed in the
subsequent commit.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
 contrib/coccinelle/run_command.pending.cocci | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 contrib/coccinelle/run_command.pending.cocci
diff mbox series


diff --git a/contrib/coccinelle/run_command.pending.cocci b/contrib/coccinelle/run_command.pending.cocci
new file mode 100644
index 00000000000..709fdfcf720
--- /dev/null
+++ b/contrib/coccinelle/run_command.pending.cocci
@@ -0,0 +1,11 @@ 
+struct child_process E;
+- E.env_array
++ E.env
+struct child_process *E;
+- E->env_array
++ E->env