getPreviousRef static method
Implementation
static Future<String> getPreviousRef(String? root, {String tagPrefix = 'v'}) async {
final tags = await getVersions(root, tagPrefix: tagPrefix);
if (tags.isEmpty) {
throw const GitException('No tags found');
}
return tags.last.$1;
}