Trường · Commit Entry

Trường · Commit Entry · git.commitEntry. Phương thức tạo · Ví dụ

git.commitEntry

Cài đặt trình tạo

Tạo dữ liệu để xem kết quả ở đây.

Tham số & Ví dụ

Generates a random commit entry as printed by git log.

git.commitEntry(options?: { merge?, eol?, refDate? })
options
Options for the commit entry.
options.merge
Whether to generate a merge message line. Defaults to 20% true and 80% false.
options.eol
Choose the end of line character to use. Defaults to 'CRLF'. 'LF' = '\n', 'CRLF' = '\r\n'
options.refDate
The date to use as reference point for the commit. Defaults to new Date().

Ví dụ

"commit 2d1e97c33ba9cfe6e8af666db6e02c8aa1ca4ca2\r\nAuthor: Kathryne.Treutel49 <[email protected]>\r\nDate: Wed Dec 31 08:10:22 2025 -0100\r\n\r\n    generate primary capacitor\r\n"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản