Explorar el Código

Sort the output of list-git-modules

Samuel W. Flint hace 6 años
padre
commit
e745f53965
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      list-git-modules

+ 2 - 1
list-git-modules

@@ -3,5 +3,6 @@
 if [[ -e .gitmodules ]] ; then
     cat .gitmodules | \
         grep "^\[.*\]$" | \
-        sed "s/\[submodule \"\\(.*\\)\"\]/\1/g"
+        sed "s/\[submodule \"\\(.*\\)\"\]/\1/g" | \
+        sort
 fi