6

作为发布构建的构建步骤的一部分,我想访问特定构建的更改日志。特别是 git 提交消息。

我不确定我是否可以在构建步骤中通过 git 执行此操作,或者将更改日志设置为我可以访问的参数。任何帮助表示赞赏。

4

1 回答 1

5

git log很可能是你的答案:

anew@Wintermute$ git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
* 8e11818 2013-02-05 | Add first rough prototype of json controller. Add naive first model as a placeholder. Add separate contexts
* 6570201 2013-01-30 | Remove DAO layer. Preparation for graph data layer. [4n3w]
* a079c87 2013-01-30 | Cleanup. Wish I had more time for this! [4n3w]

编辑:我发现了这个如何为 TeamCIty 中的未决更改编写 git log,这可能与您尝试执行的操作重复。

于 2013-02-08T14:25:36.190 回答