mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
improve resetChanges() dartdoc (#46008)
This commit is contained in:
parent
19f8f497f4
commit
dfc108c66c
@ -194,11 +194,12 @@ class UpgradeCommandRunner {
|
||||
}
|
||||
}
|
||||
|
||||
/// Attempts to reset to the last known tag or branch. This should restore the
|
||||
/// history to something that is compatible with the regular upgrade
|
||||
/// process.
|
||||
/// Attempts to reset to the last non-hotfix tag.
|
||||
///
|
||||
/// If the git history is on a hotfix, doing a fast forward will not pick up
|
||||
/// major or minor version upgrades. By resetting to the point before the
|
||||
/// hotfix, doing a git fast forward should succeed.
|
||||
Future<void> resetChanges(GitTagVersion gitTagVersion) async {
|
||||
// We only got here by using --force.
|
||||
String tag;
|
||||
if (gitTagVersion == const GitTagVersion.unknown()) {
|
||||
tag = 'v0.0.0';
|
||||
|
Loading…
Reference in New Issue
Block a user