]> git.phdru.name Git - git-scripts.git/commitdiff
Locate all git repositories
authorOleg Broytman <phd@phdru.name>
Sun, 3 Aug 2014 23:38:41 +0000 (03:38 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 3 Aug 2014 23:38:41 +0000 (03:38 +0400)
.gitignore [new file with mode: 0644]
locate-all [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..eb834c0
--- /dev/null
@@ -0,0 +1 @@
+locate-all.list
diff --git a/locate-all b/locate-all
new file mode 100755 (executable)
index 0000000..a7837d2
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+(locate -b \\.git && locate -b *.git) | sort | uniq |
+   sed 's!/\.git$!!' >locate-all.list