1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Allow specifying "to" commit option in git-changelog

This commit is contained in:
Laurent Cozic 2019-09-09 18:50:04 +01:00
parent 1b2767167d
commit cf67e0d4af

View File

@ -209,10 +209,11 @@ async function main() {
if (!argv._.length) throw new Error('Tag name must be specified. Provide the tag of the new version and git-changelog will walk backward to find the changes to the previous relevant tag.'); if (!argv._.length) throw new Error('Tag name must be specified. Provide the tag of the new version and git-changelog will walk backward to find the changes to the previous relevant tag.');
const fromTagName = argv._[0]; const fromTagName = argv._[0];
let toTagName = argv._.length >= 2 ? argv._[1] : '';
const platform = platformFromTag(fromTagName); const platform = platformFromTag(fromTagName);
const toTagName = await findFirstRelevantTag(fromTagName); if (!toTagName) toTagName = await findFirstRelevantTag(fromTagName);
const logsSinceTags = await gitLog(toTagName); const logsSinceTags = await gitLog(toTagName);