Re: [PATCH v3 1/2] run-command API: rename "env_array" to "env"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 3, 2022, 00:37 UTC
- Message-ID
- <xmqqczfqinui.fsf@gitster.g>
- In-Reply-To
- <patch-v3-1.2-80ef05d5b0a-20220602T090745Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 18 quoted lines
> The rest of this is all a result of applying [1]: > > * make contrib/coccinelle/run_command.cocci.patch > * patch -p1 <contrib/coccinelle/run_command.cocci.patch > * git add -u > > 1. cat contrib/coccinelle/run_command.pending.cocci > @@ > struct child_process E; > @@ > - E.env_array > + E.env > > @@ > struct child_process *E; > @@ > - E->env_array > + E->env
It makes sense to have this in the log message for documentation purposes. We have plenty of examples of renaming a symbol to another, like the simple ones in object_id.cocci, so adding this to the collection in contrib/coccinelle would not add much value.
Will replace. Thanks.