Skip to content

Commit

Permalink
Update git log format to support earlier git versions
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
cookpete committed May 31, 2018
1 parent 5bdc7c0 commit 3c5ae3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { cmd, isLink, replaceText } from './utils'

const COMMIT_SEPARATOR = '__AUTO_CHANGELOG_COMMIT_SEPARATOR__'
const MESSAGE_SEPARATOR = '__AUTO_CHANGELOG_MESSAGE_SEPARATOR__'
const LOG_FORMAT = COMMIT_SEPARATOR + '%H%n%d%n%ai%n%an%n%ae%n%B' + MESSAGE_SEPARATOR
const LOG_FORMAT = COMMIT_SEPARATOR + '%H%n%d%n%ai%n%an%n%ae%n%s%n%n%b' + MESSAGE_SEPARATOR
const MATCH_COMMIT = /(.*)\n(?:\s\((.*)\))?\n(.*)\n(.*)\n(.*)\n([\S\s]+)/
const MATCH_STATS = /(\d+) files? changed(?:, (\d+) insertions?...)?(?:, (\d+) deletions?...)?/

Expand Down

0 comments on commit 3c5ae3b

Please sign in to comment.