Skip to content

Commit

Permalink
Merge pull request #38563 from graknol/master
Browse files Browse the repository at this point in the history
Git branches sorted by committerdate, latest first.
  • Loading branch information
joaomoreno authored Dec 15, 2017
2 parents 588eb52 + 924b100 commit 8f76a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/git/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f76a4d

Please sign in to comment.