summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2014-03-31 11:36:56 -0700
committerMitchel Humpherys <mitchelh@codeaurora.org>2014-03-31 13:08:26 -0700
commite81bc030bba802627fd34af472fc0cf451e17c1d (patch)
tree2d899160e958b00b330e7a50927f1a6cd16eb526 /manifest_xml.py
parent26c45a79586da17fe2e26a427acb56c81fb3bcc5 (diff)
downloadgit-repo-e81bc030bba802627fd34af472fc0cf451e17c1d.tar.gz
Add total count and iteration count to forall environment
For long-running forall commands sometimes it's useful to know which iteration is currently running. Add REPO_I and REPO_COUNT environment variables to reflect the current iteration count as well as the total number of iterations so that the user can build simple status indicators. Example: $ repo forall -c 'echo $REPO_I / $REPO_COUNT; git gc' 1 / 579 Counting objects: 41, done. Delta compression using up to 8 threads. Compressing objects: 100% (19/19), done. Writing objects: 100% (41/41), done. Total 41 (delta 21), reused 41 (delta 21) 2 / 579 Counting objects: 53410, done. Delta compression using up to 8 threads. Compressing objects: 100% (10423/10423), done. Writing objects: 100% (53410/53410), done. Total 53410 (delta 42513), reused 53410 (delta 42513) 3 / 579 ... Change-Id: I9f28b0d8b7debe423eed3b4bc1198b23e40c0c50 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'manifest_xml.py')
0 files changed, 0 insertions, 0 deletions