diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 21475fbd434..cd9de30c4c4 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -1059,7 +1059,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;