Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x | import chalk from "chalk" export const TOTAL_COMMITS = 100 export const SUBJECT_LENGTH = 50 export const BANNER_LENGTH = 120 export const BANNER_INDENT = 28 export const AUTHOR_LENGTH = 7 export const DEFAULT_FIELDS = [ `abbrevHash`, `subject`, `authorName`, `authorDate`, `authorDateRel` ] export const PARTYFILE = `.gitpartyrc` export const DEFAULT_CONFIG = { // this is our config filterMergeCommits: true, collapseAuthors: false, authorLength: AUTHOR_LENGTH, subjectLength: SUBJECT_LENGTH, bannerLength: BANNER_LENGTH, bannerIndent: BANNER_INDENT, filter: ``, json: false, // below this line are gitlog configuration repo: process.cwd(), number: TOTAL_COMMITS, fields: DEFAULT_FIELDS, timezone: `UTC`, execOptions: { maxBuffer: 1000 * 1024 } } export const CHARACTER_LITERALS = { BLANK: ` `, NEWLINE: `\n`, ASTERISK: `*`, TILDE: /~$/ } export const ARGV_CONFIG = { boolean: [`m`, `a`, `i`], number: [`l`, `e`, `b`, `s`], alias: { a: [`collapseAuthors`, `collapse`], b: `bannerLength`, c: `config`, f: `filter`, h: `help`, e: `bannerIndent`, i: `init`, j: `json`, l: `authorLength`, m: `filterMergeCommits`, o: `output`, s: `subjectLength`, t: `timezone`, repo: `r`, number: [`n`, `totalCommits`] } } export const MAKE_A_GITPARTYRC_FILE = [ `Unable to find a ${PARTYFILE} config file in this folder.`, `Did you mean to create one with \`${chalk.yellow(`gitparty --init`)}\`?` ].join(` `) // eslint-disable-next-line max-len export const IT_ONLY_WORKS_IN_GIT_REPOS = `gitparty only works in git repositories! Did you mean to \`${chalk.yellow( `git init` )}\` first?` export const BASE_CONFIG_FILE = `gitpartyrc: key: G color: bgRed matches: - \\**${PARTYFILE} collapseAuthors: false timezone: utc ` |