Revert "Preserve alternate file in :Gmove"

This reverts commit 68b3f3b3d6e8e01bf1c60b22745db731356349cc.  Since
:saveas changes the alternate file, :Gmove should too.
This commit is contained in:
Tim Pope 2011-04-28 21:23:47 -04:00
parent 5e25040a97
commit 0184570176

View File

@ -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)