soywiki 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +5 -1
- metadata +1 -1
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -259,7 +259,11 @@ func! s:rename_page(page_path_or_title)
|
|
259
259
|
write!
|
260
260
|
call system("mkdir -p " . s:namespace_of_title(page_title))
|
261
261
|
let original_file = bufname('')
|
262
|
-
|
262
|
+
if executable("git"
|
263
|
+
echo system("git mv " . original_file . " " . newfile)
|
264
|
+
else
|
265
|
+
echo system("mv " . original_file . " " . newfile)
|
266
|
+
endif
|
263
267
|
call system("git commit -am 'rename wiki page'")
|
264
268
|
exec "!" . s:rename_links_command . original_file . " " . newfile
|
265
269
|
call system("git commit -am 'rename wiki links'")
|