]> git.phdru.name Git - git-scripts.git/blobdiff - locate-all
Feat(set-commit-date): Allow to choose between author and committer date
[git-scripts.git] / locate-all
index a7837d217f2496ca187a820b9ff3208afe13f6a4..841721ea07bbffd902f1278e6c0ab16d372cd2dc 100755 (executable)
@@ -1,3 +1,13 @@
 #! /bin/sh
-(locate -b \\.git && locate -b *.git) | sort | uniq |
-   sed 's!/\.git$!!' >locate-all.list
+locate -b \*.git |
+   grep -v "/archive/SQLObject/\|/archive/cheetah3/\|/third-party/\|$HOME/tmp/" |
+   while read path; do
+      if [ -d "$path" ]; then # skip files `.git` - they're submodules
+         if [ "`basename \"$path\"`" = .git ]; then
+            dirname "$path"
+         else
+            echo "$path"
+         fi
+      fi
+   done |
+   LC_ALL=C sort | uniq > locate-all.list