read.js 548 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const get_history_commits_1 = require("./get-history-commits");
  4. const get_edit_commit_1 = require("./get-edit-commit");
  5. // Get commit messages
  6. async function getCommitMessages(settings) {
  7. const { cwd, from, to, edit } = settings;
  8. if (edit) {
  9. return (0, get_edit_commit_1.getEditCommit)(cwd, edit);
  10. }
  11. return (0, get_history_commits_1.getHistoryCommits)({ from, to }, { cwd });
  12. }
  13. exports.default = getCommitMessages;
  14. //# sourceMappingURL=read.js.map