diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2018-01-24 00:51:22 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2018-01-24 06:08:57 +0000 |
commit | 7722efe8cd4d45eb40373c147ad692e7ae13c648 (patch) | |
tree | 287b7761d669871763ce090b6cf0b46f40913cc2 /extras | |
parent | 1eb970d16028e9a987c1dd2bfe217d1313262b81 (diff) |
Script to list patches that changed api files.
- Add Ole Troan's script from vpp-dev email:
https://lists.fd.io/pipermail/vpp-dev/2017-October/007037.html
Change-Id: I0cbf5118169dc25f0edd659a5a9f5cde8619f780
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/scripts/list_api_changes.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extras/scripts/list_api_changes.py b/extras/scripts/list_api_changes.py new file mode 100755 index 00000000000..9e80925b2aa --- /dev/null +++ b/extras/scripts/list_api_changes.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +import os, fnmatch, subprocess +starttag = 'v18.01-rc0' +endtag = 'v18.01-rc2' +apifiles = [] +for root, dirnames, filenames in os.walk('.'): + for filename in fnmatch.filter(filenames, '*.api'): + apifiles.append(os.path.join(root, filename)) +for f in apifiles: + commits = subprocess.check_output(['git', 'log', + '--oneline', starttag + '..' + endtag, + f]) + if commits: + print f + print commits |