get-history-commits.js 673 B

1234567891011121314
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. exports.getHistoryCommits = void 0;
  7. const git_raw_commits_1 = __importDefault(require("git-raw-commits"));
  8. const stream_to_promise_1 = require("./stream-to-promise");
  9. // Get commit messages from history
  10. async function getHistoryCommits(options, opts = {}) {
  11. return stream_to_promise_1.streamToPromise(git_raw_commits_1.default(options, { cwd: opts.cwd }));
  12. }
  13. exports.getHistoryCommits = getHistoryCommits;
  14. //# sourceMappingURL=get-history-commits.js.map