mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 06:01:13 +01:00
Fix: Fixed some messages.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user