]> git.phdru.name Git - git-scripts.git/commitdiff
No need to run two similar locate commands
authorOleg Broytman <phd@phdru.name>
Tue, 19 Aug 2014 20:58:24 +0000 (00:58 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 19 Aug 2014 20:58:24 +0000 (00:58 +0400)
Results for `locate -b \\.git' is fully contained in `locate -b \*.git'.

locate-all

index fb9d0d550c00e62fa700f859467ccb683ef39dad..21daa91de58cf5d2b274ddddf1fd5e5dbb230ef9 100755 (executable)
@@ -1,3 +1,2 @@
 #! /bin/sh
-(locate -b \\.git && locate -b \*.git) | sed 's!/\.git$!!' |
-   sort | uniq >locate-all.list
+locate -b \*.git | sed 's!/\.git$!!' | sort | uniq >locate-all.list