claude-pre-edit-1752107522

This commit is contained in:
zolinthecow 2025-07-09 17:32:02 -07:00
parent 3d33120cea
commit 221b2dce50
1 changed files with 19 additions and 0 deletions

View File

@ -104,6 +104,25 @@ function M.get_changed_files(stash_ref)
return files return files
end 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 -- Set up keybindings for diff review
function M.setup_keybindings() function M.setup_keybindings()
-- Review actions -- Review actions