anchor.diff:      });
     }
   
  +  Future<bool> _hasCommitsSince(GitDir gitDir, Version sinceVersion) async {
  +    return (await commitCountSince(gitDir, sinceVersion.toString())) > 0;
  +  }
  +
     @override
     ProjectCommand release({ReleaseType type: ReleaseType.minor}) {
       return projectCommandWithDependencies('Release version type $type',
           (Project project, Set<Project> dependencies) async {
         final GitDir gitDir = await project.gitDir;
  +
  +      final currentPubspecVersion = project.pubspec.version;
  +
  +      final Version latestTaggedVersion =
  +          (await _gitFeature.getReleaseVersionTags().process(project)).last;
  +
         final Option<HostedPackageVersions> publishedVersionsOpt =
             await _pub.fetchPackageVersions().process(project);
   
  
positive.code:             // nothing to do here as nothing has changed.
            }
          }
        }
  
        final newVersion = type.bump(project.pubspec.version);
        await _gitFeature.releaseStart(newVersion.toString()).process(project);
        await project.updatePubspec(project.pubspec.copy(version: newVersion));
        await _pubSpec.setToHostedDependencies().process(project,
            dependencies: dependencies);
        await _git.commit('releasing version $newVersion').process(project);
        await _gitFeature.releaseFinish(newVersion.toString()).process(project);
        await _git.push().process(project);
      });
    }
  
  
negative.code:           .map((HostedPackageVersions versions) => versions.latest.version);
  
        if (latestPublishedVersionOpt is Some) {
          final latestPublishedVersion = latestPublishedVersionOpt.get();
          if (latestPublishedVersion < currentPubspecVersion) {
            await _pub.publish().process(project);
          } else {
            final hasChangesSinceLastPublish =
                await _hasCommitsSince(gitDir, latestPublishedVersion);
  
            if (hasChangesSinceLastPublish /* &&
                latestPublishedVersion == currentPubspecVersion */
  