This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode:lisp; package:markdown-mode -*- | |
;; markdown.l ( http://www.geocities.jp/kiaswebsite/xyzzy/markdown.html ) | |
;; Rev: 227 を元に改変 | |
;; | |
;; License | |
;; ======= | |
;; | |
;; Copyright (c) 2011 Yousuke Ushiki <[email protected]> | |
;; Copyright (c) 2005,2006 kia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- nyaosのgit向けluaコマンド | |
-- print('loading... "_nya_git.lua"') | |
-- $git submodule rm | |
-- サブモジュールの削除 | |
-- http://labs.timedia.co.jp/2011/03/git-removing-a-submodule.html | |
nyaos.command['git submodule rm'] = function(name) | |
local modulepath = nyaos.eval('git config --file .gitmodules --get submodule.' .. name .. '.path'); | |
nyaos.exec('git rm --cached ' .. modulepath); | |
nyaos.exec('git config --file .gitmodules --remove-section submodule.' .. name); | |
nyaos.exec('git commit -m "Remove submodule '..name..'"') |