当前位置: 动力学知识库 > 问答 > 编程问答 >

git - VSTS build associated commits

问题描述:

Does anyone know how VSTS creates its list of associated commits for a build?

I'm specifically looking for those created when I create a new branch. Currently it seems to just create a list of the past few commits to the branched from branch.

Ideally what I'd like is something akin to git log master..<commit hash>.

We were hoping to use this as release documentation by creating a new branch for the release which would contain the full commit history for all work across all branches merged into it but that doesn't seem to be the case.

网友答案:

It includes current commit and previous failed build(s) commits if have. For example:

  1. Build failed (Comment commit 01), associated changes: commit 01
  2. Build failed (Comment commit 02), associated changes: commit 02 commit 01
  3. Build succeed (Comment commit 03), associated changes: commit 03 commit 02 commit 01
  4. Build succeed (comment commit 04), associated changes: commit 04

So, it won’t include all commits.

To get all commits, you can go to Code=>Select file or folder=>Click history, then the history will be listed.

You also could get commits through REST API (as Chirs Melinn said).

分享给朋友:
您可能感兴趣的文章:
随机阅读: