From: Oleg Broytman Date: Mon, 23 Dec 2019 02:30:31 +0000 (+0300) Subject: Doc(locate-all): Add comments X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=b37159809ed2c8c569a0d27d74e97e1d606c5dd1 Doc(locate-all): Add comments --- diff --git a/locate-all b/locate-all index e348424..3440614 100755 --- a/locate-all +++ b/locate-all @@ -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 - dirname "$path" + dirname "$path" # translate `project/.git/` to just `project/` else - echo "$path" + echo "$path" # bare repo `project.git/` fi fi done |