浏览代码

New plugin git-svn installing git project
git-svn-clone-externals

Tristan Carel 14 年之前
父节点
当前提交
14a1877311
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 1 0
      plugins/git-svn/.gitignore
  2. 10 0
      plugins/git-svn/git-svn.plugin.zsh

+ 1 - 0
plugins/git-svn/.gitignore

@@ -0,0 +1 @@
+git-svn-clone-externals

+ 10 - 0
plugins/git-svn/git-svn.plugin.zsh

@@ -0,0 +1,10 @@
+
+if ! [ -d "$ZSH/plugins/git-svn/git-svn-clone-externals" ] ;then
+    git clone https://github.com/andrep/git-svn-clone-externals.git
+fi
+export PATH="$ZSH/plugins/git-svn/git-svn-clone-externals:$PATH"
+
+function git_svn_update {
+    (cd "$ZSH/plugins/git-svn/git-svn-clone-externals" && \
+        git pull origin master)
+}