Skip to content

Commit

Permalink
Merge pull request #76 from jigarzon/master
Browse files Browse the repository at this point in the history
added tag field
  • Loading branch information
hipstersmoothie authored Mar 21, 2022
2 parents 9c12a31 + 029eac6 commit 617373e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const fieldMap = {
subject: "%s",
body: "%b",
rawBody: "%B",
tag: "%D",
} as const;
export type CommitField = keyof typeof fieldMap;

Expand Down

0 comments on commit 617373e

Please sign in to comment.