有一种方法可以获取tree_id的文件列表吗?
实际上我找不到合适的方法来做到这一点! 我无法超越tree_id !!!
{
"commitId": "string",
"repositoryName": "string"
}
响应
{
"commit": {
"additionalData": "string",
"author": {
"date": "string",
"email": "string",
"name": "string"
},
"committer": {
"date": "string",
"email": "string",
"name": "string"
},
"message": "string",
"parents": [ "string" ],
"treeId": "string"
}
}
感谢您的帮助
答案 0 :(得分:1)
AWS CodeCommit目前没有针对此用途的API。但是,GetDifferences API将执行递归树遍历。因此,如果您传入null作为beforeCommitSpecifier,则将显示afterCommitSpecifier值之前的所有更改,并且文件名包含在响应中。以下是GetDifferences API的文档:http://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetDifferences.html