Add sorting to flutter version command (#31064)
This commit is contained in:
parent
975d2f113c
commit
e6f33e92a9
@ -35,7 +35,7 @@ class VersionCommand extends FlutterCommand {
|
||||
|
||||
Future<List<String>> getTags() async {
|
||||
final RunResult runResult = await runCheckedAsync(
|
||||
<String>['git', 'tag', '-l', 'v*'],
|
||||
<String>['git', 'tag', '-l', 'v*', '--sort=-creatordate'],
|
||||
workingDirectory: Cache.flutterRoot,
|
||||
);
|
||||
return runResult.toString().split('\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user