X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=locate-all;h=f83a8827e6caec8c5ef889893ccacecf69b6bc4e;hb=c5e4601c3938434c414a232ae3bb5d368d25d871;hp=21daa91de58cf5d2b274ddddf1fd5e5dbb230ef9;hpb=05bea3cce607ae3d9ff6151bd7ed5ed1aa113194;p=git-scripts.git diff --git a/locate-all b/locate-all index 21daa91..f83a882 100755 --- a/locate-all +++ b/locate-all @@ -1,2 +1,13 @@ #! /bin/sh -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