Skip to content

Commit

Permalink
extra/make-changelog: check and output usage message
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 25, 2020
1 parent cc697a6 commit cf90b29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extra/make-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
repo = git.Repo(".")
changelog = defaultdict(list) # type: Dict[str, List[str]]

if len(sys.argv) != 2:
print("Usage: %s SINCE-TAG" % __file__, file=sys.stderr)
sys.exit(2)

for id in repo.iter_commits("%s..HEAD" % sys.argv[1]):
commit = repo.commit(id)
if not commit.summary.startswith("Merge pull request "):
Expand Down

0 comments on commit cf90b29

Please sign in to comment.