9e80925b2aa2e2177bf8c1d3918120ad7dc7eb02
[vpp.git] / extras / scripts / list_api_changes.py
1 #!/usr/bin/env python
2 import os, fnmatch, subprocess
3 starttag = 'v18.01-rc0'
4 endtag = 'v18.01-rc2'
5 apifiles = []
6 for root, dirnames, filenames in os.walk('.'):
7     for filename in fnmatch.filter(filenames, '*.api'):
8         apifiles.append(os.path.join(root, filename))
9 for f in apifiles:
10     commits = subprocess.check_output(['git', 'log',
11                                        '--oneline', starttag + '..' + endtag,
12                                        f])
13     if commits:
14         print f
15         print commits