Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmm, some part of me wouldn't mind, a FUSE setup where: /repository/github.com/<org>/<repo>/ is automatically cloned out from github when accessed the first time :)

It would be pretty cool to use as a $GOPATH. Or just for making drive-by github contributions super easy.



I built https://github.com/zimbatm/h to satisfy the same need but it's a command-line tool, not a FUSE filesystem. In some way I prefer it because transparent network access doesn't work really well with failure modes.

Usage: `h <owner>/<repo>` clones the repo, if it doesn't exist, and takes you there.

This and hub are integral to my developer workflow:

    $ h some/repo
    $ git checkout -b some-branch
    [hack and commit]
    $ hub fork
    $ git push -u zimbatm
    $ hub pull-request
    Done


It's all fun and games until someone like me tries to run `find` on the parent directory...


Children would be lazily loaded and would not appear in directory listing of the parent directory. `find` would search your existing local checkouts only and the file system would still be POSIX.


How do you trigger loading the projects if there isn’t a pointer to them showing up in the file system?


When you open or stat a directory that doesn't exist, try to checkout that path, if that fails, return an ENOENT error?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: