使用stashrestapi按日期获取git提交信息
有没有办法通过隐藏RESTAPI按日期获取git提交信息 我搜索了开发人员文档,了解到可以使用提交id等获取提交信息,但不能使用日期使用stashrestapi按日期获取git提交信息,git,date,git-commit,bitbucket-server,Git,Date,Git Commit,Bitbucket Server,有没有办法通过隐藏RESTAPI按日期获取git提交信息 我搜索了开发人员文档,了解到可以使用提交id等获取提交信息,但不能使用日期 根据本标准的参考文件 可用于从给定的开始提交或两次提交之间检索变更集页面。提交可以通过分支或标记名或散列来标识。可以提供一个路径,将返回的变更集限制为仅影响该路径的变更集 样本响应 { "size": 1, "limit": 25, "isLastPage": true, "values": [ {
根据本标准的参考文件 可用于从给定的开始提交或两次提交之间检索变更集页面。提交可以通过分支或标记名或散列来标识。可以提供一个路径,将返回的变更集限制为仅影响该路径的变更集 样本响应
{
"size": 1,
"limit": 25,
"isLastPage": true,
"values": [
{
"id": "def0123abcdef4567abcdef8987abcdef6543abc",
"displayId": "def0123",
"author": {
"name": "charlie",
"emailAddress": "charlie@example.com"
},
"authorTimestamp": 1377738985925,
"message": "More work on feature 1",
"parents": [
{
"id": "abcdef0123abcdef4567abcdef8987abcdef6543",
"displayId": "abcdef0"
}
]
}
],
"start": 0,
"filter": null,
"authorCount": 1,
"totalCount": 1
}
您可以使用authorTimestamp来实现您的目标。根据本手册的参考文件 可用于从给定的开始提交或两次提交之间检索变更集页面。提交可以通过分支或标记名或散列来标识。可以提供一个路径,将返回的变更集限制为仅影响该路径的变更集 样本响应
{
"size": 1,
"limit": 25,
"isLastPage": true,
"values": [
{
"id": "def0123abcdef4567abcdef8987abcdef6543abc",
"displayId": "def0123",
"author": {
"name": "charlie",
"emailAddress": "charlie@example.com"
},
"authorTimestamp": 1377738985925,
"message": "More work on feature 1",
"parents": [
{
"id": "abcdef0123abcdef4567abcdef8987abcdef6543",
"displayId": "abcdef0"
}
]
}
],
"start": 0,
"filter": null,
"authorCount": 1,
"totalCount": 1
}
您可以使用authorTimestamp来实现您的目标。在Bitbucket服务器和DC中搜索提交仍然具有挑战性。但是,您可以执行以下操作:
- 当您使用数量有限的存储库时,可以利用Sourcetree
- 在以下情况下使用Bitbucket应用程序的精彩图表: 您需要一种更全面的方法来搜索和分析 比特桶
- 在的帮助下获取存储库中的提交列表 Bitbucket REST API。 您可以在这篇博文中找到更多信息:
- 当您使用数量有限的存储库时,可以利用Sourcetree
- 在以下情况下使用Bitbucket应用程序的精彩图表: 您需要一种更全面的方法来搜索和分析 比特桶
- 在的帮助下获取存储库中的提交列表 Bitbucket REST API。 您可以在这篇博文中找到更多信息: