Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/273.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.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
C# Bitbucket API是否有方法返回分支中的所有文件?_C#_Git_Winforms_Bitbucket Api - Fatal编程技术网

C# Bitbucket API是否有方法返回分支中的所有文件?

C# Bitbucket API是否有方法返回分支中的所有文件?,c#,git,winforms,bitbucket-api,C#,Git,Winforms,Bitbucket Api,我目前正在尝试编写一个windows应用程序,帮助实现网站部署的自动化。因为我们使用BitBucket,所以我使用的是他们的API 我遇到的问题是,我需要返回在分支中添加/修改的所有文件的列表。我看到您可以使用变更集来获取文件清单,但它只返回最新的清单 比如说,, {accountname}/{project}/changesets/{hash} 如果我删除散列,它将返回最近15次提交,可以是任何分支 任何帮助都会很好。谢谢 Bitbucket使用某种哈希/段塞来标识其分支,每个分支都有一个唯一

我目前正在尝试编写一个windows应用程序,帮助实现网站部署的自动化。因为我们使用BitBucket,所以我使用的是他们的API

我遇到的问题是,我需要返回在分支中添加/修改的所有文件的列表。我看到您可以使用变更集来获取文件清单,但它只返回最新的清单

比如说,, {accountname}/{project}/changesets/{hash}

如果我删除散列,它将返回最近15次提交,可以是任何分支


任何帮助都会很好。谢谢

Bitbucket使用某种哈希/段塞来标识其分支,每个分支都有一个唯一的段塞/哈希

如下图所示,与分支公司1关联的哈希值为1a0560189ab3d1bfa437c8bee9d9521f1ae670e7

因此,为了获得特定分支的详细信息,您可以使用以下URL:

https://api.bitbucket.org/2.0/repositories/<company_name>/<repository_name/src/<hash_slug_of_the_branch>/

https://api.bitbucket.org/2.0/repositories//Bitbucket使用某种哈希/段塞来标识其分支,每个分支都有一个唯一的段塞/哈希

如下图所示,与分支公司1关联的哈希值为1a0560189ab3d1bfa437c8bee9d9521f1ae670e7

因此,为了获得特定分支的详细信息,您可以使用以下URL:

https://api.bitbucket.org/2.0/repositories/<company_name>/<repository_name/src/<hash_slug_of_the_branch>/
https://api.bitbucket.org/2.0/repositories//