def get_entries(commit):
return [entry for entry in commit.tree.traverse()
if entry.type == 'blob'
and all([fnmatch.fnmatch(entry.path, pattern) for pattern in args.only])
and not any([fnmatch.fnmatch(entry.path, pattern) for pattern in args.ignore])]
评论列表
文章目录