You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCUMENTATION.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ You can see below the API reference of this module.
10
10
-**GitStats** The `GitStats` instance.
11
11
12
12
### `getConfig(callback)`
13
-
Fetches the configuration object from file (`~/.git-stats-config.json`).
13
+
Fetches the configuration object from file (`~/.git-stats-config.js`).
14
14
15
15
#### Params
16
16
-**Function**`callback`: The callback function.
@@ -46,7 +46,7 @@ Deletes a specifc commit from the history.
46
46
47
47
#### Params
48
48
-**Object**`data`: The commit data containing:
49
-
-`date` (String|Date): The date object or a string in a format that can be parsed.
49
+
-`date` (String|Date): The date object or a string in a format that can be parsed. If not provided, the hash object will be searched in all dates.
50
50
-`hash` (String): The commit hash.
51
51
-`_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.
52
52
-`save` (Boolean): If `false`, the result will *not* be saved in the file.
@@ -107,11 +107,11 @@ Creates the calendar data for the provided period (default: *last year*).
107
107
#### Return
108
108
-**GitStats** The `GitStats` instance.
109
109
110
-
### `ansiCalendar(data, callback)`
110
+
### `ansiCalendar(options, callback)`
111
111
Creates the ANSI contributions calendar.
112
112
113
113
#### Params
114
-
-**Object**`data`: The object passed to the `calendar` method.
114
+
-**Object**`options`: The object passed to the `calendar` method.
115
115
-**Function**`callback`: The callback function.
116
116
117
117
#### Return
@@ -136,6 +136,7 @@ Creates the authors pie.
136
136
-`repo` (String): The repository path.
137
137
-`radius` (Number): The pie radius.
138
138
-`no_ansi` (Boolean): If `true`, the pie will not contain ansi characters.
139
+
-`raw` (Boolean): If `true`, the raw JSON will be displayed.
0 commit comments