]> git.phdru.name Git - git-scripts.git/commitdiff
Doc(locate-all): Add comments
authorOleg Broytman <phd@phdru.name>
Mon, 23 Dec 2019 02:30:31 +0000 (05:30 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 23 Dec 2019 02:30:31 +0000 (05:30 +0300)
locate-all

index e348424a0e2739b791c87cc649e283a4520a5351..3440614badf8223febc3a593006e0f19661ada66 100755 (executable)
@@ -4,9 +4,9 @@ locate -b \*.git |
    while read path; do
       if [ -d "$path" ]; then # skip files `.git` - they're submodules
          if [ "`basename \"$path\"`" = .git ]; then
    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
          else
-            echo "$path"
+            echo "$path" # bare repo `project.git/`
          fi
       fi
    done |
          fi
       fi
    done |