claude-baseline-1752129677

This commit is contained in:
zolinthecow 2025-07-09 23:41:17 -07:00
parent eea5bcd2e3
commit 125d43d226
2 changed files with 14 additions and 7 deletions

View File

@ -29,3 +29,9 @@ AUTOMATIC HOOK TEST: This should trigger hooks automatically!
RESTART TEST: This edit is after Neovim restart - hooks should work now! RESTART TEST: This edit is after Neovim restart - hooks should work now!
HOOKS FIXED: This edit should trigger the pre/post hooks and show inline diff! HOOKS FIXED: This edit should trigger the pre/post hooks and show inline diff!
TEST AFTER REBASE: This line should trigger the inline diff automatically!
HOOK TEST: Testing with corrected settings.json!
RESTART COMPLETE: Testing hooks after Neovim restart!

View File

@ -510,13 +510,14 @@ function M.cleanup_old_commits()
end end
-- Keep only the last 5 Claude commits, remove the rest -- Keep only the last 5 Claude commits, remove the rest
if #commits > 5 then -- DISABLED: This was causing rebases that broke the workflow
for i = 6, #commits do -- if #commits > 5 then
local reset_cmd = string.format('cd "%s" && git rebase --onto %s^ %s', git_root, commits[i], commits[i]) -- for i = 6, #commits do
utils.exec(reset_cmd) -- local reset_cmd = string.format('cd "%s" && git rebase --onto %s^ %s', git_root, commits[i], commits[i])
end -- utils.exec(reset_cmd)
vim.notify('Cleaned up old Claude commits', vim.log.levels.DEBUG) -- end
end -- vim.notify('Cleaned up old Claude commits', vim.log.levels.DEBUG)
-- end
end end
end end