(fields: CommitFields)
| 66 | export type CommitFields = typeof commitFields; |
| 67 | /** The commit fields described as git log format entries for parsing. */ |
| 68 | export const commitFieldsAsFormat = (fields: CommitFields) => { |
| 69 | return Object.entries(fields) |
| 70 | .map(([key, value]) => `%n-${key}-%n${value}`) |
| 71 | .join(''); |
| 72 | }; |
| 73 | /** |
| 74 | * The git log format template to create git log entries for parsing. |
| 75 | * |