claude-baseline-1752141436 (rejected changes)
This commit is contained in:
parent
f668777dd5
commit
ff430ffb90
|
@ -207,7 +207,7 @@ function M.create_startup_baseline()
|
||||||
local check_cmd = string.format('cd "%s" && git rev-parse --verify %s^{commit} 2>/dev/null', git_root, existing_baseline)
|
local check_cmd = string.format('cd "%s" && git rev-parse --verify %s^{commit} 2>/dev/null', git_root, existing_baseline)
|
||||||
local check_result, check_err = utils.exec(check_cmd)
|
local check_result, check_err = utils.exec(check_cmd)
|
||||||
|
|
||||||
if check_result and not check_err and check_result:match('^%x+') then
|
if check_result and not check_err and check_result:match '^%x+' then
|
||||||
-- Baseline is valid
|
-- Baseline is valid
|
||||||
vim.notify('Claude baseline loaded: ' .. existing_baseline:sub(1, 7), vim.log.levels.INFO)
|
vim.notify('Claude baseline loaded: ' .. existing_baseline:sub(1, 7), vim.log.levels.INFO)
|
||||||
return
|
return
|
||||||
|
@ -226,7 +226,7 @@ function M.create_startup_baseline()
|
||||||
local commit_cmd = string.format('cd "%s" && git commit -m "%s" --allow-empty', git_root, commit_msg)
|
local commit_cmd = string.format('cd "%s" && git commit -m "%s" --allow-empty', git_root, commit_msg)
|
||||||
local commit_result, commit_err = utils.exec(commit_cmd)
|
local commit_result, commit_err = utils.exec(commit_cmd)
|
||||||
|
|
||||||
if not commit_err or commit_err:match('nothing to commit') then
|
if not commit_err or commit_err:match 'nothing to commit' then
|
||||||
-- Get the commit hash
|
-- Get the commit hash
|
||||||
local hash_cmd = string.format('cd "%s" && git rev-parse HEAD', git_root)
|
local hash_cmd = string.format('cd "%s" && git rev-parse HEAD', git_root)
|
||||||
local commit_hash, hash_err = utils.exec(hash_cmd)
|
local commit_hash, hash_err = utils.exec(hash_cmd)
|
||||||
|
@ -358,7 +358,7 @@ function M.uninstall_hooks()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Commands for manual hook management
|
-- MULTI-FILE TEST: Commands for manual hook management
|
||||||
function M.setup_commands()
|
function M.setup_commands()
|
||||||
vim.api.nvim_create_user_command('ClaudeTestHooks', function()
|
vim.api.nvim_create_user_command('ClaudeTestHooks', function()
|
||||||
M.test_hooks()
|
M.test_hooks()
|
||||||
|
|
Loading…
Reference in New Issue