submodule--helper.c: Rename 'cb_foreach' to 'foreach_cb'
authorShourya Shukla <shouryashukla.oo@gmail.com>
Wed, 18 Mar 2020 14:20:24 +0000 (19:50 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Mar 2020 19:43:25 +0000 (12:43 -0700)
commitd00a5bdd505540f2f3d8f1a3b99cd93425627e88
tree1abadcc4303591f8b6910a8863f9fd905d951fbe
parentbe8661a3286c67a5d4088f4226cbd7f8b76544b0
submodule--helper.c: Rename 'cb_foreach' to 'foreach_cb'

In 'submodule--helper.c', the structures and macros for callbacks belonging
to any subcommand are named in the format: 'subcommand_cb' and 'SUBCOMMAND_CB_INIT'
respectively.

This was an exception for the subcommand 'foreach' of the command
'submodule'. Rename the aforementioned structures and macros:
'struct cb_foreach' to 'struct foreach_cb' and 'CB_FOREACH_INIT'
to 'FOREACH_CB_INIT'.

Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c