diff --git a/README.md b/README.md index da7fd5e..bc9791d 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ An array of fields to return from the log, here are the possible options: - `subject` - commit message (first line) - `body` - commit body - `rawBody` - raw body (subject + body) +- `tag` - raw tag information of commit Defaults to 'abbrevHash', 'hash', 'subject' and 'authorName'. diff --git a/src/index.ts b/src/index.ts index e0bd003..10e32a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,6 +28,7 @@ const fieldMap = { subject: "%s", body: "%b", rawBody: "%B", + tag: "%D", } as const; export type CommitField = keyof typeof fieldMap;