Skip to content

for-each-repo: new command for multi-repo operations

Lars Hjemli git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 15 repliesIn review
  2. v32 patches 1 replySuperseded
  3. v21 patch 8 repliesSuperseded

Changes in v4 from the cover letter

* option -x used to execute non-git commands
* option -z used to NUL-terminate paths
* write_name_quoted() used to print repo paths
* repos are handled in sorted order (as defined by strcmp(3)) to get predictable output from the command
* unsetenv() reintroduced to avoid problems from GIT_DIR/WORK_TREE
* more tests

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2for-each-repo: new command used for multi-repo operations.gitignore Documentation/git-for-each-repo.txt Makefile +4 more+370 -015 replies
2/2git: rewrite `git -a` to become a git-for-each-repo commandgit.c t/t6400-for-each-repo.sh+99 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] for-each-repo: new command for multi-repo operations

Changes since v3:
* option -x used to execute non-git commands
* option -z used to NUL-terminate paths
* write_name_quoted() used to print repo paths
* repos are handled in sorted order (as defined by strcmp(3)) to get predictable output from the command
* unsetenv() reintroduced to avoid problems from GIT_DIR/WORK_TREE
* more tests

Lars Hjemli (2):
for-each-repo: new command used for multi-repo operations
git: rewrite git -a to become a git-for-each-repo command

 .gitignore                          |   1 +
 Documentation/git-for-each-repo.txt |  71 ++++++++++++
 Makefile                            |   1 +
 builtin.h                           |   1 +
 builtin/for-each-repo.c             | 145 ++++++++++++++++++++++++
 git.c                               |  37 +++++++
 t/t6400-for-each-repo.sh            | 213 ++++++++++++++++++++++++++++++++++++
 7 files changed, 469 insertions(+)
 create mode 100644 Documentation/git-for-each-repo.txt
 create mode 100644 builtin/for-each-repo.c
 create mode 100755 t/t6400-for-each-repo.sh
Signature · 1 line
1.8.1.1.349.g4cdd23e