From 924b1002bbdf10e2c068e02f9042136e17d07662 Mon Sep 17 00:00:00 2001 From: Sindre Tellevik Date: Fri, 17 Nov 2017 00:09:23 +0100 Subject: [PATCH] Git branches sorted by committerdate, latest first. --- extensions/git/src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;