Fix: Fixed some messages.

This commit is contained in:
psychhim
2025-10-12 21:44:31 +05:30
parent d0b90a5f38
commit b66ec99a83

View File

@@ -30,13 +30,13 @@ vim.api.nvim_create_user_command('UpdateKickestEnd', function()
-- If there are local changes or untracked files, confirm overwrite -- If there are local changes or untracked files, confirm overwrite
if dirty then if dirty then
local answer = vim.fn.input 'Local changes detected! Delete and overwrite them? (This cannot be undone) (y/N): ' local answer = vim.fn.input 'Local changes or new files detected! Overwrite and delete them? (y/N): '
if answer:lower() ~= 'y' then if answer:lower() ~= 'y' then
vim.notify('Update cancelled to preserve your modifications.', vim.log.levels.WARN) vim.notify('Update cancelled to preserve your modifications.', vim.log.levels.WARN)
return return
end end
vim.notify('Discarding all local changes and untracked files...', vim.log.levels.WARN) vim.notify('\nDiscarding all local changes and untracked files...', vim.log.levels.WARN)
vim.fn.system { 'git', '-C', config_path, 'reset', '--hard' } vim.fn.system { 'git', '-C', config_path, 'reset', '--hard' }
vim.fn.system { 'git', '-C', config_path, 'clean', '-fdx' } vim.fn.system { 'git', '-C', config_path, 'clean', '-fdx' }
end end