def find_changelog(path):
folder = os.path.split(path)[0]
while True:
- if os.path.exists(os.path.join(gcc_root, folder, 'ChangeLog')):
+ if os.path.exists(os.path.join(args.directory, folder, 'ChangeLog')):
return folder
folder = os.path.dirname(folder)
if folder == '':
help='Do not generate function names in ChangeLogs')
parser.add_argument('-p', '--fill-up-bug-titles', action='store_true',
help='Download title of mentioned PRs')
+ parser.add_argument('-d', '--directory', default=gcc_root,
+ help='Root directory where to search for ChangeLog '
+ 'files')
parser.add_argument('-c', '--changelog',
help='Append the ChangeLog to a git commit message '
'file')