From 26f24960c44030f3c87826f60bf40808dd584bb9 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Thu, 18 May 2023 19:35:55 +0800 Subject: [PATCH] rename git diff context --- src/context/contextGitDiff.ts | 2 +- src/context/contextGitDiffCached.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/contextGitDiff.ts b/src/context/contextGitDiff.ts index dab9415..d25c276 100644 --- a/src/context/contextGitDiff.ts +++ b/src/context/contextGitDiff.ts @@ -6,7 +6,7 @@ import { logger } from '../util/logger'; export const gitDiffContext: ChatContext = { - name: 'git diff', + name: 'git diff HEAD', description: 'diff for all changes', handler: async () => { const tempDir = await createTempSubdirectory('devchat/context'); diff --git a/src/context/contextGitDiffCached.ts b/src/context/contextGitDiffCached.ts index 7e401bd..6154829 100644 --- a/src/context/contextGitDiffCached.ts +++ b/src/context/contextGitDiffCached.ts @@ -6,7 +6,7 @@ import { logger } from '../util/logger'; export const gitDiffCachedContext: ChatContext = { - name: 'git diff cached', + name: 'git diff --cached', description: 'diff for cached changes', handler: async () => { const tempDir = await createTempSubdirectory('devchat/context');