Hi,

after a little discussion with madduck, I settled on the approach of multiple
repos, checked out into a single worktree.

AFAIK the problem always used to be how to find out the correct repo for a file.

So I created git-find-repo.sh:

#!/bin/sh

file=$1

for repo in .fgits/*; do
    if GIT_DIR=$repo git ls-files $file | fgrep $file >/dev/null; then
        echo $repo
        exit
    fi
done

exit 1


Integrated with an alias like 'git guess-repo', this can be used to set GIT_DIR
accordingly.

Comments?

mxey

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Reply via email to