Docs about _data and save

This commit is contained in:
Ionică Bizău 2015-09-13 17:49:10 +03:00
parent d04935e340
commit 7865ddcbcc
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ GitStats.DEFAULT_CONFIG = {
* - `date` (String|Date): The date object or a string in a format that can be parsed.
* - `url` (String): The repository remote url.
* - `hash` (String): The commit hash.
* - `_data` (Object): If this field is provided, it should be the content of the git-stats data file as object. It will be modified in-memory and then returned.
* - `save` (Boolean): If `false`, the result will *not* be saved in the file.
*
* @param {Function} callback The callback function.
* @return {GitStats} The `GitStats` instance.