Revert "Preserve alternate file in :Gmove"
This reverts commit 68b3f3b3d6e8e01bf1c60b22745db731356349cc. Since :saveas changes the alternate file, :Gmove should too.
This commit is contained in:
parent
5e25040a97
commit
0184570176
@ -1205,9 +1205,9 @@ function! s:Move(force,destination)
|
||||
call fugitive#reload_status()
|
||||
if s:buffer().commit() == ''
|
||||
if isdirectory(destination)
|
||||
return 'keepalt edit '.s:fnameescape(destination)
|
||||
return 'edit '.s:fnameescape(destination)
|
||||
else
|
||||
return 'keepalt saveas! '.s:fnameescape(destination)
|
||||
return 'saveas! '.s:fnameescape(destination)
|
||||
endif
|
||||
else
|
||||
return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)
|
||||
|
Loading…
x
Reference in New Issue
Block a user