Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用stashrestapi按日期获取git提交信息_Git_Date_Git Commit_Bitbucket Server - Fatal编程技术网

使用stashrestapi按日期获取git提交信息

使用stashrestapi按日期获取git提交信息,git,date,git-commit,bitbucket-server,Git,Date,Git Commit,Bitbucket Server,有没有办法通过隐藏RESTAPI按日期获取git提交信息 我搜索了开发人员文档,了解到可以使用提交id等获取提交信息,但不能使用日期 根据本标准的参考文件 可用于从给定的开始提交或两次提交之间检索变更集页面。提交可以通过分支或标记名或散列来标识。可以提供一个路径,将返回的变更集限制为仅影响该路径的变更集 样本响应 { "size": 1, "limit": 25, "isLastPage": true, "values": [ {

有没有办法通过隐藏RESTAPI按日期获取git提交信息

我搜索了开发人员文档,了解到可以使用提交id等获取提交信息,但不能使用日期


根据本标准的参考文件

可用于从给定的开始提交或两次提交之间检索变更集页面。提交可以通过分支或标记名或散列来标识。可以提供一个路径,将返回的变更集限制为仅影响该路径的变更集

样本响应

{
    "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。 您可以在这篇博文中找到更多信息:

在Bitbucket服务器和DC中搜索提交仍然是一项挑战。但是,您可以执行以下操作:

  • 当您使用数量有限的存储库时,可以利用Sourcetree
  • 在以下情况下使用Bitbucket应用程序的精彩图表: 您需要一种更全面的方法来搜索和分析 比特桶
  • 在的帮助下获取存储库中的提交列表 Bitbucket REST API。 您可以在这篇博文中找到更多信息:

非常感谢。我将尝试解析authorTimestamp以满足我的特定需要。非常感谢。我将尝试解析authorTimestamp以满足我的特定需要。