omitting repo headers with 'mr run'
vcs-home at adamspiers.org
Sat Feb 11 14:27:08 CET 2012
I have just coded git-wip, a little utility which returns true if
the current repo has any work in progress, i.e. commits out of sync
with upstream, or unmodified/untracked files.
I would like to run this across all my repositories via `mr wip', so I
wrote the following mr action:
if git wip; then
git branch -v -v
git status -s
However, if I have (say) 70 repositories and only two of them have
work in progress, `mr wip' outputs about 150 lines, of which only 10
lines are useful. This is because for every repository it outputs
a header line like:
mr wip: ~/.GIT/adamspiers.org/mutt
plus a blank line. Is there any existing way I can make it only
output the repositories for which the git_wip action generates some
output? If not, I'm happy to submit a patch but would welcome
feedback on the best approach; adding a new command-line option
similar to --quiet perhaps?
More information about the vcs-home