]> git.phdru.name Git - git-scripts.git/blobdiff - locate-all
Doc(locate-all): Add comments
[git-scripts.git] / locate-all
index 841721ea07bbffd902f1278e6c0ab16d372cd2dc..3440614badf8223febc3a593006e0f19661ada66 100755 (executable)
@@ -1,12 +1,12 @@
 #! /bin/sh
 locate -b \*.git |
-   grep -v "/archive/SQLObject/\|/archive/cheetah3/\|/third-party/\|$HOME/tmp/" |
+   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"
+            dirname "$path" # translate `project/.git/` to just `project/`
          else
-            echo "$path"
+            echo "$path" # bare repo `project.git/`
          fi
       fi
    done |