3
# Reformat imports in new and modified files. Call without arguments
4
# to operate on uncommitted changes. Arguments will be passed to bzr
5
# status, so to operate on all new and modified files relative to the
8
# format-new-and-modified-imports -r submit:
11
bzr status --short "$@" | \
12
awk '/^.[MN] .*[.]py$/ { print $NF }' | \
13
xargs -r "$(dirname "$0")/format-imports"