workspace snapshot
Create a frozen manifest for the current workspace.
repo-on-fire workspace snapshot
By default, the command prints the resulting manifest to standard output. To
write it to a file instead, pass -o or --output:
repo-on-fire workspace snapshot --output snapshot.xml
The generated manifest is similar to running:
repo manifest -r --suppress-upstream-revision --suppress-dest-branch
In addition to the projects that are currently checked out, workspace
snapshot also tries to freeze projects that are excluded from the workspace via
the notdefault group. If such a project tracks a branch, repo-on-fire uses
git ls-remote to resolve that branch to a commit hash.
If an excluded project cannot be queried, for example because the user does not have access to the repository, it is omitted from the manifest. In that case an XML comment is added so it is visible that the snapshot is not fully frozen yet.