From d1fb6b703cd6e016270c59906a8bd70ea143dad3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 24 Aug 2022 03:59:18 -0400 Subject: [PATCH] Ensures proper date ordering for Graph --- src/plus/webviews/graph/graphWebview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 06d5e72..a2b91eb 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -379,6 +379,7 @@ export class GraphWebview extends WebviewBase { const { defaultItemLimit, pageItemLimit } = this.getConfig(); const log = await this.container.git.getLog(this.repository.uri, { all: true, + ordering: 'date', limit: defaultItemLimit ?? pageItemLimit, }); if (log?.commits == null) return undefined;