Skip to content

Commit 4da8a71

Browse files
committed
Limit git log retrieval to the last six months instead of the last twenty commits
1 parent 92bc55d commit 4da8a71

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎apps/editor/src/commands/apply-context-command/sources/commit-files-source.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ export const handle_commit_files_source = async (
2020
}
2121

2222
while (true) {
23-
const log_output = execSync('git log -n 20 --pretty=format:"%H|%s|%ar"', {
24-
cwd: repository.rootUri.fsPath,
25-
encoding: 'utf-8'
26-
})
23+
const log_output = execSync(
24+
'git log --since="6 months ago" --pretty=format:"%H|%s|%ar"',
25+
{
26+
cwd: repository.rootUri.fsPath,
27+
encoding: 'utf-8'
28+
}
29+
)
2730
.toString()
2831
.trim()
2932

‎apps/editor/src/views/panel/backend/message-handlers/handle-hash-sign-quick-pick/handle-hash-sign-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import * as vscode from 'vscode'
12
import { PanelProvider } from '@/views/panel/backend/panel-provider'
23
import { MODE } from '@/views/panel/types/main-view-mode'
3-
import * as vscode from 'vscode'
44
import { LAST_SELECTED_SYMBOL_STATE_KEY } from '@/constants/state-keys'
55
import {
66
handle_selection_item,

0 commit comments

Comments
 (0)