Generates a date string for a git commit using the same format as git log
.
Optional
options: { refDate?: string | number | Date }The optional options object.
Optional
refDate?: string | number | DateThe date to use as reference point for the commit.
Generates a random commit entry as printed by git log
.
Optional
options: { eol?: "LF" | "CRLF"; merge?: boolean; refDate?: string | number | Date }Options for the commit entry.
Optional
eol?: "LF" | "CRLF"Choose the end of line character to use.
Optional
merge?: booleanSet to true
to generate a merge message line.
Optional
refDate?: string | number | DateThe date to use as reference point for the commit.
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:
Optional
options: { length?: number }Options for the commit sha.
Optional
length?: numberThe length of the commit sha.
Module to generate git related entries.
Overview
commitEntry()
generates a random commit entry as printed bygit log
. This includes a commit hashcommitSha()
, author, datecommitDate()
, and commit messagecommitMessage()
. You can also generate a random branch name withbranch()
.