Explorar o código

Added git submodule lister

Samuel W. Flint %!s(int64=8) %!d(string=hai) anos
pai
achega
9ae39be814
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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