diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:45 -0700 |
commit | 75b182d34ed1ed9aad81dca32430e2d4a5aa49eb (patch) | |
tree | 53ab572a091652a2fdb8ff9859c36ba3c8f6fa55 /Documentation | |
parent | 473dcb4d89494a826b84a21f5dd4220cf79cb331 (diff) | |
parent | c75662bfc963fb3e776e4a863bbb726819352cfd (diff) | |
download | git-75b182d34ed1ed9aad81dca32430e2d4a5aa49eb.tar.gz |
Merge branch 'js/for-each-repo-keep-going'
A scheduled "git maintenance" job is expected to work on all
repositories it knows about, but it stopped at the first one that
errored out. Now it keeps going.
* js/for-each-repo-keep-going:
maintenance: running maintenance should not stop on errors
for-each-repo: optionally keep going on an error
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-for-each-repo.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-for-each-repo.txt b/Documentation/git-for-each-repo.txt index 94bd19da26..abe3527aac 100644 --- a/Documentation/git-for-each-repo.txt +++ b/Documentation/git-for-each-repo.txt @@ -42,6 +42,15 @@ These config values are loaded from system, global, and local Git config, as available. If `git for-each-repo` is run in a directory that is not a Git repository, then only the system and global config is used. +--keep-going:: + Continue with the remaining repositories if the command failed + on a repository. The exit code will still indicate that the + overall operation was not successful. ++ +Note that the exact exit code of the failing command is not passed +through as the exit code of the `for-each-repo` command: If the command +failed in any of the specified repositories, the overall exit code will +be 1. SUBPROCESS BEHAVIOR ------------------- |