git-find-repeo

martin f krafft madduck at madduck.net
Thu Feb 28 21:07:51 CET 2008


The problem Max is trying to solve started with this post:

  http://marc.info/?l=git&m=118407895625277&w=2

and was identified here:

  http://marc.info/?l=git&m=118422647932244&w=2

I have some minor comments on the code:

> for repo in .fgits/*; do

probably want to make this configurable...

>     if GIT_DIR=$repo git ls-files $file | fgrep $file >/dev/null; then

fgrep -q :)

The only concern I have is scalability. Iterating all repos and
running ls-files on them is quite bad. However, I can't think of
a better way. Can you?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
above all, we should not wish to divest
our existence of its rich ambiguity.
                                                 --friedrich nietzsche
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20080228/b5ae58ea/attachment.pgp>


More information about the vcs-home mailing list