DOCUMENTATION.md
September 8, 2017 ยท View on GitHub
Documentation
You can see below the API reference of this module.
Importer(options, gs, data)
Creates a new Importer instance.
Params
- Object
options: TheGitStatsImporteroptions. - GitStats
gs: TheGitStatsinstance. - Object
data: The commit data.
Return
- Importer The
Importerinstance.
stream()
Spawns the git log command and returns the stdout stream.
Return
- Stream The stdout stream of
git logcommand.
iterate()
Emits the commmit, error and finish events.
delete()
Deletes the selected commits.
import()
Imports the selected commits.
GitStatsImporter(options)
Creates a new instance of GitStatsImporter.
Params
- 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): Iftruethe 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.
Return
- GitStatsImporter The
GitStatsImporterinstance.