+ if f[0:2] == './':
+ f = f[2:]
+ if emit_md:
+ print("| @c %s ||" % f)
+ print("| ------- | ------- |")
+ for line in commits.splitlines():
+ parts = line.strip().split()
+ commit = parts[0]
+ 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))
+ print()
+ else:
+ print(f)
+ print(commits)