! Copyright (C) 2017 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: arrays concurrency.combinators concurrency.semaphores fry
-io io.directories io.encodings.utf8 io.files.info io.launcher
-io.pathnames kernel math namespaces sequences splitting
-system-info unicode ;
+USING: accessors arrays concurrency.combinators
+concurrency.semaphores fry io io.directories io.encodings.utf8
+io.files.info io.launcher io.pathnames kernel math namespaces
+sequences splitting system-info unicode ;
IN: cli.git
SYMBOL: cli-git-num-parallel
_ [ update-repository ] with-semaphore
] parallel-each
] with-ensure-directory ;
+
+: directory-entries-without-git ( directory -- entries )
+ recursive-directory-entries
+ [ name>> "/.git/" swap subseq? ] reject ;
\ No newline at end of file