企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# C.22 GitLogTask Show commit logs. See official [documentation](http://www.kernel.org/pub/software/scm/git/docs/git-log.html). Table C.23:聽Attributes NameTypeDescriptionDefaultRequired`gitPath``String`Path to Git binary/usr/bin/gitNo`repository``String`Path to Git repositoryn/aYes`paths``String`<paentry> arguments to git-log. Accepts one or more paths delimited by PATH\_SEPARATORn/aNo`outputProperty``String`Property name to set with output value from git-logn/aNo`format``String`Commit format. See --format of git-log. Can be one of `oneline`, `short`, `medium`, `full`, `fuller`, `email`, `raw` and `format:<string>`mediumNo`date``String`Date format. See --date of git-log.n/aNo`since``String`<since> argument to git-log.n/aNo`until``String`<until> argument to git-log.n/aNo`stat``String`Generate a diffstat. See --stat of git-logn/aNo`nameStatus``Boolean`Names + status of changed files. See --name-status of git-log.`false`No`maxCount``Integer`Number of commits to show. See -<n>|-n|--max-count of git-log.n/aNo`noMerges``Boolean`Don't show commits with more than one parent. See --no-merges of git-log.`false`No C.22.1 Example ``` <property name="repo.dir" value="./relative/path/to/repo" /> <resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" /> <!-- clone repository --> <gitclone repository="git://github.com/path/to/repo/repo.git" targetPath="${repo.dir.resolved}" /> <gitlog paths="${repo.dir.resolved}" format="oneline" maxCount="2" stat="true" noMerges="false" since="Sun Jan 23 23:55:42 2011 +0300" until="Mon Jan 24 09:59:33 2011 +0300" outputProperty="logs" repository="${repo.dir.resolved}" /> ```