claude-baseline-1752141436 (rejected changes)

This commit is contained in:
zolinthecow 2025-07-10 02:57:16 -07:00
parent f668777dd5
commit ff430ffb90
1 changed files with 13 additions and 13 deletions

View File

@ -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_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
vim.notify('Claude baseline loaded: ' .. existing_baseline:sub(1, 7), vim.log.levels.INFO)
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_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
local hash_cmd = string.format('cd "%s" && git rev-parse HEAD', git_root)
local commit_hash, hash_err = utils.exec(hash_cmd)
@ -358,7 +358,7 @@ function M.uninstall_hooks()
end
end
-- Commands for manual hook management
-- MULTI-FILE TEST: Commands for manual hook management
function M.setup_commands()
vim.api.nvim_create_user_command('ClaudeTestHooks', function()
M.test_hooks()