C.25 GitLogTask
Prev | Appendix C. Optional tasks | Next

## C.25 GitLogTask

Show commit logs. See official documentation.

Table C.26: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`gitPath` | `String` | Path to Git binary | /usr/bin/git | No
`repository` | `String` | Path to Git repository | n/a | Yes
`paths` | `String` | <paentry> arguments to git-log. Accepts one or more paths delimited by PATH_SEPARATOR | n/a | No
`outputProperty` | `String` | Property name to set with output value from git-log | n/a | No
`format` | `String` | Commit format. See --format of git-log. Can be one of `oneline`, `short`, `medium`, `full`, `fuller`, `email`, `raw` and `format:<string>` | medium | No
`date` | `String` | Date format. See --date of git-log. | n/a | No
`since` | `String` | <since> argument to git-log. | n/a | No
`until` | `String` | <until> argument to git-log. | HEAD | No
`stat` | `String` | Generate a diffstat. See --stat of git-log | n/a | No
`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/a | No
`noMerges` | `Boolean` | Don't show commits with more than one parent. See --no-merges of git-log. | `false` | No

### C.25.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}" />

Prev | Up | Next
C.24 GitTagTask | Home | C.26 GrowlNotifyTask