| from __future__ import print_function |
| for root, dirnames, filenames in os.walk('.'): |
| for filename in fnmatch.filter(filenames, '*.api'): |
| apifiles.append(os.path.join(root, filename)) |
| commits = subprocess.check_output(['git', 'log', |
| '--oneline', starttag + '..' + endtag, |
| print("| ------- | ------- |") |
| for line in commits.splitlines(): |
| parts = line.strip().split() |
| message = b" ".join(parts[1:]).decode().replace("|", r"\|") |
| print("| [%s](https://gerrit.fd.io/r/gitweb?" |
| "p=vpp.git;a=commit;h=%s) | %s |" % ( |
| commit, commit, message)) |