claude-pre-edit-1752107522

pull/1635/head
zolinthecow 3 days ago
parent 3d33120cea
commit 221b2dce50

@ -104,6 +104,25 @@ function M.get_changed_files(stash_ref)
return files
end
-- Get list of files changed since baseline
function M.get_changed_files_since_baseline(baseline_ref)
local utils = require('nvim-claude.utils')
local cmd = string.format('git diff --name-only %s', baseline_ref)
local result = utils.exec(cmd)
if not result or result == '' then
return {}
end
local files = {}
for line in result:gmatch('[^\n]+') do
if line ~= '' then
table.insert(files, line)
end
end
return files
end
-- Set up keybindings for diff review
function M.setup_keybindings()
-- Review actions

Loading…
Cancel
Save