]> git.ipfire.org Git - thirdparty/git.git/commit - command-list.txt
for-each-repo: run subcommands on configured repos
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 11 Sep 2020 17:49:16 +0000 (17:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2020 17:59:44 +0000 (10:59 -0700)
commit4950b2a2b5c4731e4c9d5b803739a6979b23fed6
treee07a20813d86cc06468b4b0a1fbcec4e133397f4
parentb08ff1fee000230ad22fee823aabff2613bd4e62
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>
.gitignore
Documentation/git-for-each-repo.txt [new file with mode: 0644]
Makefile
builtin.h
builtin/for-each-repo.c [new file with mode: 0644]
command-list.txt
git.c
t/t0068-for-each-repo.sh [new file with mode: 0755]