Merge pull request #38563 from graknol/master

Git branches sorted by committerdate, latest first.
This commit is contained in:
João Moreno
2017-12-15 15:51:10 +01:00
committed by GitHub

View File

@@ -1150,7 +1150,7 @@ export class Repository {
}
async getRefs(): Promise<Ref[]> {
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;