summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-25 20:57:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-25 20:57:44 (GMT)
commitd4bd8049b2f10d58ef1402b0cfa0297a74f0c485 (patch)
treef883833787a3735bb579d2792245e36e38e3bb57 /builtin
parent1ee4ac28a818a696c7b230c3a0ef8ff162724af2 (diff)
parentd00a5bdd505540f2f3d8f1a3b99cd93425627e88 (diff)
downloadgit-d4bd8049b2f10d58ef1402b0cfa0297a74f0c485.zip
git-d4bd8049b2f10d58ef1402b0cfa0297a74f0c485.tar.gz
git-d4bd8049b2f10d58ef1402b0cfa0297a74f0c485.tar.bz2
Merge branch 'ss/submodule-foreach-cb'
Code clean-up. * ss/submodule-foreach-cb: submodule--helper.c: Rename 'cb_foreach' to 'foreach_cb'
Diffstat (limited to 'builtin')
-rw-r--r--builtin/submodule--helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index 86a608e..1a4b391 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -444,19 +444,19 @@ static void for_each_listed_submodule(const struct module_list *list,
fn(list->entries[i], cb_data);
}
-struct cb_foreach {
+struct foreach_cb {
int argc;
const char **argv;
const char *prefix;
int quiet;
int recursive;
};
-#define CB_FOREACH_INIT { 0 }
+#define FOREACH_CB_INIT { 0 }
static void runcommand_in_submodule_cb(const struct cache_entry *list_item,
void *cb_data)
{
- struct cb_foreach *info = cb_data;
+ struct foreach_cb *info = cb_data;
const char *path = list_item->name;
const struct object_id *ce_oid = &list_item->oid;
@@ -557,7 +557,7 @@ cleanup:
static int module_foreach(int argc, const char **argv, const char *prefix)
{
- struct cb_foreach info = CB_FOREACH_INIT;
+ struct foreach_cb info = FOREACH_CB_INIT;
struct pathspec pathspec;
struct module_list list = MODULE_LIST_INIT;