Tiny commit walker
Tiny git commit walker has no native modules.
Install
$ npm install --save tiny-commit-walker
Usage
; async { const repo = 'path/to/repo/.git'; // const repo = new Repository(await Repository.findGitDir('path/to/repo')); const branches = await repo; const tags = await repo; const branch = await repo; console; // master let commit = branchcommit; while commithasParents console; commit = await commit; // default parameter of commit.walk is base parent hash. }; // or const repo = 'path/to/repo/.git';const branches = repo;const tags = repo;const branch = repo;console; // masterlet commit = branchcommit;while commithasParents console; commit = commit;