Skip to content

Commit ba9e1b7

Browse files
committed
For --dry-run at least print a summary
Using -v is overkill for a script. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
1 parent a6c237e commit ba9e1b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-publish

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,11 @@ branch.%s.pushRemote is set appropriately? (Override with --no-check-url)''' %
952952
print(e)
953953
return 1
954954
finally:
955+
if options.dry_run:
956+
npatches = len(selected_patches)
957+
npeople = len(to) + len(cc)
958+
print(f"Would have sent of {npatches} pactches to {npeople} people")
959+
955960
if tmpdir:
956961
shutil.rmtree(tmpdir)
957962

0 commit comments

Comments
 (0)