You can see below the API reference of this module.
Creates a new Importer
instance.
- Object
options
: TheGitStatsImporter
options. - GitStats
gs
: TheGitStats
instance. - Object
data
: The commit data.
- Importer The
Importer
instance.
Spawns the git log
command and returns the stdout stream.
- Stream The stdout stream of
git log
command.
Emits the commmit
, error
and finish
events.
Deletes the selected commits.
Imports the selected commits.
Creates a new instance of GitStatsImporter
.
- Object
options
: An object containing the following fields: path
(String): The repository path.delete
(Boolean): Iftrue
, it will delete the commits from the history.recursive
(Boolean): Iftrue
the tool will search for repositories in the specified path, recursively.emails
(Array): An array with the emails that were used in the commits you want to import.
- GitStatsImporter The
GitStatsImporter
instance.