| Age | Commit message (Collapse) | Author | Files | Lines |
|
* remove unused variables
* move `require`s at the top
* check for prototype built-ins
* run in strict mode
* always check for error values in tests
* make style consistent
* mark Node.js 6 as the minimum supported version in package.json
* Use the arrow return syntax
* logger.js: use `Boolean` to make the intention clearer.
* Use the rest params instead of arguments.
* test/getOptions.js: beautify git data.
* Update logger.js
Remove `hasDebugEnvVariable` function; it's just a `process.env` check
* Create .jshintrc
|
|
Conflicts:
lib/fetchGitData.js
|
|
Given the commit message
```
tree 2d257d54add0901a72fbe492538aec4a35b4f4a5
parent 21d9ce4eb278af46561e069d6410e72a88c38036
author Joshua Ma <[email protected]> 1436838814 -0700
committer Joshua Ma <[email protected]> 1436839048 -0700
main message
secondary detail
```
REGEX_COMMIT_DETAILS previously incorrectly matched `secondary detail` as the
message - it lets an optional newline match (A), followed by nongreedy
`[\S\s]+`, until a double-newline (B) is found. The message used is what
follows B. Since there's two double-newlines, before `main message` and
`secondary detail`, the first double-newline is used towards (A) and the second
set is the one that matches (B). So the message ends up being `secondary detail`.
This change simplifies the regex to just a nongreedy `[\S\s]*` until the first
double-newline, after which the message is expected.
|
|
Instead of matching the git commit file for emails which contain
at least one character, match for “emails” which also may be empty.
Also, use greedy regex matching in those places which is likely
to be more performant than non-greedy matching.
|
|
Fix minor lint error where a second semicolon appears in lib/fetchGitData.js
|
|
|
|
takes not known headers into account
|
|
|
|
(rev-parse and cat-file instead of multiple log calls)
|
|
if any.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- added exec-sync package to execute git commands
- if a proper git hash is not passed, falls back to default values
|