Module to generate git related entries.Overview
{{$git.commitEntry}} generates a random commit entry as printed by git log. This includes a commit hash {{$git.commitSha}}, author, date {{$git.commitDate}}, and commit message {{$git.commitMessage}}. You can also generate a random branch name with {{$git.branch}}.
branch#
Generates a random branch name.
commitDate#
Generates a date string for a git commit using the same format as git log.| Name | Type | Default | Description |
|---|
| refDate | string | number | Date | {{$date.now}} | The date to use as reference point for the commit. |
commitEntry#
Generates a random commit entry as printed by git log.| Name | Type | Default | Description |
|---|
| eol | 'LF' | 'CRLF' | 'CRLF' | Choose the end of line character to use.'LF' = '\n','CRLF' = '\r\n' |
| merge | boolean | {{$datatype.boolean(probability=0.2)}} | Set to true to generate a merge message line. |
| refDate | string | number | Date | {{$date.now}} | The date to use as reference point for the commit. |
commitMessage#
Generates a random commit message.
commitSha#
Generates a random commit sha.By default, the length of the commit sha is 40 characters.For a shorter commit sha, use the length option.Usual short commit sha length is:| Name | Type | Default | Description |
|---|
| length | number | 40 | The length of the commit sha. |
Modified at 2025-06-25 07:57:16