File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
src/main/kotlin/ee/carlrobert/codegpt Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object InfillRequestUtil {
31
31
32
32
val project = request.editor.project ? : return infillRequestBuilder.build()
33
33
val repository = GitUtil .getProjectRepository(project)
34
- if (repository != null ) {
34
+ if (repository != null && service< ConfigurationSettings >().state.codeCompletionSettings.gitDiffEnabled ) {
35
35
try {
36
36
val unstagedDiff = GitUtil .getUnstagedDiff(project, repository)
37
37
if (unstagedDiff.isNotEmpty()) {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ object GitUtil {
26
26
): List <GitDiffDetails > {
27
27
val handler = GitLineHandler (project, gitRepository.root, GitCommand .DIFF )
28
28
handler.addParameters(
29
- " --cached" ,
30
29
" --unified=1" ,
31
30
" --diff-filter=AM" ,
32
31
" --no-prefix" ,
You can’t perform that action at this time.
0 commit comments