.net - Azure DevOps : Search Commit History of Author on ALL Branches

标签 .net git azure-devops commit git-history

如何在 Azure Devops 的所有分支中找到作者的提交历史?此选项仅允许我在功能分支上按作者进行过滤。想搜索所有分行。

enter image description here

最佳答案

How do I find the commit History for Author in All Branches in Azure Devops?



如果你想在 UI 页面查看所有分支内的提交历史,恐怕直到现在,这个功能都不支持。如您所见,它仅支持在一个指定分支中使用 UI 按钮进行过滤。

在我们的官方功能建议网站上,这里已经存在这样的功能建议:View history for whole GIT repository .此外,这里还有另一个正在审核中的功能建议:Show combined git branch history, including common ancestor .我相信它会在不久的将来发布。

备注 : 你可以在那里投票和评论。当有足够的票数时,产品组会将其视为计划。

虽然它无法通过 UI 实现,但您可以尝试另一种解决方法。您可以使用 Rest API在所有分支中按作者过滤提交历史。

这是示例:
GET https://dev.azure.com/{org name}/_apis/git/repositories/{repositoryId}/commits?searchCriteria.author={author name}&api-version=5.1

该 API 可以列出所有分支中过滤的作者的提交记录。

关于.net - Azure DevOps : Search Commit History of Author on ALL Branches,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57191644/

相关文章:

git credential.helper 不存储用户名密码

.net - 搜索字符串并从字符串中提取尺寸或数量值

c# - 为什么我无法访问 System.EventArgs 的 KeyCode 成员?

git 忽略 .gitattributes 模式

azure - 如何使用 AzureResourceManagerTemplateDeployment 将 azure-pipelines.yml 变量传递到 ARM 模板

Azure Pipelines 代理代理设置未按预期工作

c# - 将 WPF Canvas 保存为图像

.net - 为什么我不能在对象成员中使用一次性对象?

git - 字体 Font Awesome 在 Git 克隆/pull 后显示为框?

git - rebase 分支,建立在另一个之上,在 master 上