summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2020-09-11 17:49:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-25 17:59:44 (GMT)
commit4950b2a2b5c4731e4c9d5b803739a6979b23fed6 (patch)
treee07a20813d86cc06468b4b0a1fbcec4e133397f4 /builtin.h
parentb08ff1fee000230ad22fee823aabff2613bd4e62 (diff)
downloadgit-4950b2a2b5c4731e4c9d5b803739a6979b23fed6.zip
git-4950b2a2b5c4731e4c9d5b803739a6979b23fed6.tar.gz
git-4950b2a2b5c4731e4c9d5b803739a6979b23fed6.tar.bz2
for-each-repo: run subcommands on configured repos
It can be helpful to store a list of repositories in global or system config and then iterate Git commands on that list. Create a new builtin that makes this process simple for experts. We will use this builtin to run scheduled maintenance on all configured repositories in a future change. The test is very simple, but does highlight that the "--" argument is optional. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index 17c1c0c..ff7c6e5 100644
--- a/builtin.h
+++ b/builtin.h
@@ -150,6 +150,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix);
int cmd_fetch_pack(int argc, const char **argv, const char *prefix);
int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix);
int cmd_for_each_ref(int argc, const char **argv, const char *prefix);
+int cmd_for_each_repo(int argc, const char **argv, const char *prefix);
int cmd_format_patch(int argc, const char **argv, const char *prefix);
int cmd_fsck(int argc, const char **argv, const char *prefix);
int cmd_gc(int argc, const char **argv, const char *prefix);