如何使用jgit获取特定提交ID的文件夹和文件列表

huangapple 未分类评论45阅读模式
标题翻译

How to get a list of folders and files in particular commit id with jgit

问题

我看过很多教程,但没有找到获取特定提交编号中的所有文件和文件夹的代码。提前谢谢。

英文翻译

I have seen a lot of tutorials but I haven't found any code for getting all the files and folders in a particular commit id. Thanks in advance.

答案1

得分: 0

尝试一下,

git show --pretty="" --name-only bd61ad98
英文翻译

Try this,

git show --pretty="" --name-only bd61ad98    

huangapple
  • 本文由 发表于 2020年3月16日 20:17:31
  • 转载请务必保留本文链接:https://java.coder-hub.com/60705880.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定