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 {
3131
3232 val project = request.editor.project ? : return infillRequestBuilder.build()
3333 val repository = GitUtil .getProjectRepository(project)
34- if (repository != null ) {
34+ if (repository != null && service< ConfigurationSettings >().state.codeCompletionSettings.gitDiffEnabled ) {
3535 try {
3636 val unstagedDiff = GitUtil .getUnstagedDiff(project, repository)
3737 if (unstagedDiff.isNotEmpty()) {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ object GitUtil {
2626 ): List <GitDiffDetails > {
2727 val handler = GitLineHandler (project, gitRepository.root, GitCommand .DIFF )
2828 handler.addParameters(
29- " --cached" ,
3029 " --unified=1" ,
3130 " --diff-filter=AM" ,
3231 " --no-prefix" ,
You can’t perform that action at this time.
0 commit comments