mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -05:00
Revert "Preserve alternate file in :Gmove"
This reverts commit 68b3f3b3d6. Since
:saveas changes the alternate file, :Gmove should too.
This commit is contained in:
@@ -1205,9 +1205,9 @@ function! s:Move(force,destination)
|
|||||||
call fugitive#reload_status()
|
call fugitive#reload_status()
|
||||||
if s:buffer().commit() == ''
|
if s:buffer().commit() == ''
|
||||||
if isdirectory(destination)
|
if isdirectory(destination)
|
||||||
return 'keepalt edit '.s:fnameescape(destination)
|
return 'edit '.s:fnameescape(destination)
|
||||||
else
|
else
|
||||||
return 'keepalt saveas! '.s:fnameescape(destination)
|
return 'saveas! '.s:fnameescape(destination)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)
|
return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)
|
||||||
|
|||||||
Reference in New Issue
Block a user