diff options
Diffstat (limited to 'docs/markdown/Subprojects.md')
-rw-r--r-- | docs/markdown/Subprojects.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/markdown/Subprojects.md b/docs/markdown/Subprojects.md index 24b8af6..2546441 100644 --- a/docs/markdown/Subprojects.md +++ b/docs/markdown/Subprojects.md @@ -235,12 +235,21 @@ To pull latest version of all your subprojects at once, just run the command: The command-line `meson subprojects checkout <branch_name>` will checkout a branch, or create one with `-b` argument, in every git subprojects. This is useful when starting local changes across multiple subprojects. It is still your -responsability to commit and push in each repository where you made local +responsibility to commit and push in each repository where you made local changes. To come back to the revision set in wrap file (i.e. master), just run `meson subprojects checkout` with no branch name. +## Execute a command on all subprojects + +*Since 0.51.0* + +The command-line `meson subprojects foreach <command> [...]` will +execute a command in each subproject directory. For example this can be useful +to check the status of subprojects (e.g. with `git status` or `git diff`) before +performing other actions on them. + ## Why must all subprojects be inside a single directory? There are several reasons. |