X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=locate-all;h=f83a8827e6caec8c5ef889893ccacecf69b6bc4e;hb=e364445d1adb40b906101cb3ce1acde85b2ffd36;hp=fb9d0d550c00e62fa700f859467ccb683ef39dad;hpb=368b4f3c978a2ae7b6821e7a0dc3511c7b94668e;p=git-scripts.git diff --git a/locate-all b/locate-all index fb9d0d5..f83a882 100755 --- a/locate-all +++ b/locate-all @@ -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/\|$HOME/tmp/\|/third-party/" | + while read path; do + if [ -d "$path" ]; then # skip files `.git` - they're submodules + if [ "`basename \"$path\"`" = .git ]; then + dirname "$path" # translate `project/.git/` to just `project/` + else + echo "$path" # bare repo `project.git/` + fi + fi + done | +LC_ALL=C sort -u > locate-all.list