We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ce8d6 commit b4e4adbCopy full SHA for b4e4adb
1 file changed
lua/CopilotChat/select.lua
@@ -161,7 +161,8 @@ function M.gitdiff(source, staged)
161
return nil
162
end
163
164
- local cmd = 'git diff --no-color --no-ext-diff' .. (staged and ' --staged' or '')
+ local dir = vim.fn.getcwd()
165
+ local cmd = 'git -C ' .. dir .. ' diff --no-color --no-ext-diff' .. (staged and ' --staged' or '')
166
local handle = io.popen(cmd)
167
if not handle then
168
0 commit comments