gpt4 book ai didi

python - GitPython 列出受某个提交影响的所有文件

转载 作者:太空狗 更新时间:2023-10-29 22:25:15 29 4
gpt4 key购买 nike

我正在使用这个 for 循环遍历所有提交:

repo = Repo("C:/Users/shiro/Desktop/lucene-solr/")
for commit in list(repo.iter_commits()):
print commit.files_list # how to do that ?

我如何获得受此特定提交影响的文件列表?

最佳答案

尝试一下

for commit in list(repo.iter_commits()):
commit.stats.files

关于python - GitPython 列出受某个提交影响的所有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39707759/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com