]> 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 fb9d0d550c00e62fa700f859467ccb683ef39dad..841721ea07bbffd902f1278e6c0ab16d372cd2dc 100755 (executable)
@@ -1,3 +1,13 @@
 #! /bin/sh
-(locate -b \\.git && locate -b \*.git) | sed 's!/\.git$!!' |
-   sort | uniq >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