diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 3ec01de6f17..fc6fc35262f 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -1150,7 +1150,7 @@ export class Repository { } async getRefs(): Promise { - const result = await this.run(['for-each-ref', '--format', '%(refname) %(objectname)']); + const result = await this.run(['for-each-ref', '--format', '%(refname) %(objectname)', '--sort', '-committerdate']); const fn = (line: string): Ref | null => { let match: RegExpExecArray | null;