Browse Source

Added git submodule lister

Samuel W. Flint 8 năm trước cách đây
mục cha
commit
9ae39be814
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      list-git-modules

+ 7 - 0
list-git-modules

@@ -0,0 +1,7 @@
+#!/bin/zsh -f
+
+if [[ -e .gitmodules ]] ; then
+    cat .gitmodules | \
+        grep "^\[.*\]$" | \
+        sed "s/\[submodule \"\\(.*\\)\"\]/\1/g"
+fi