mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-17 16:21:12 +02:00
claude-baseline-1752129677
This commit is contained in:
parent
eea5bcd2e3
commit
125d43d226
2 changed files with 14 additions and 7 deletions
|
@ -510,13 +510,14 @@ function M.cleanup_old_commits()
|
|||
end
|
||||
|
||||
-- Keep only the last 5 Claude commits, remove the rest
|
||||
if #commits > 5 then
|
||||
for i = 6, #commits do
|
||||
local reset_cmd = string.format('cd "%s" && git rebase --onto %s^ %s', git_root, commits[i], commits[i])
|
||||
utils.exec(reset_cmd)
|
||||
end
|
||||
vim.notify('Cleaned up old Claude commits', vim.log.levels.DEBUG)
|
||||
end
|
||||
-- DISABLED: This was causing rebases that broke the workflow
|
||||
-- if #commits > 5 then
|
||||
-- for i = 6, #commits do
|
||||
-- local reset_cmd = string.format('cd "%s" && git rebase --onto %s^ %s', git_root, commits[i], commits[i])
|
||||
-- utils.exec(reset_cmd)
|
||||
-- end
|
||||
-- vim.notify('Cleaned up old Claude commits', vim.log.levels.DEBUG)
|
||||
-- end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue