Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local repos could be symlinked instead of clones #311

Closed
nfultz opened this issue Jun 6, 2019 · 2 comments
Closed

Local repos could be symlinked instead of clones #311

nfultz opened this issue Jun 6, 2019 · 2 comments

Comments

@nfultz
Copy link

nfultz commented Jun 6, 2019

In experimenting with hound, it seems like replacing local clones with symlinks works:

$cd hounddata
$ls
idx-2c81735e97e5d728  idx-3945318645f67bc6  vcs-5c02f6085efcd7c4f2c4583639339d533e78a160  vcs-765a6f802ac2c02293daeeb8ee65c9ca6b80e927
$rm -rf vcs-5c02f6085efcd7c4f2c4583639339d533e78a160/
$ln -s /media/nfultz/Elements/bitbucket.org/29decibel/ vcs-5c02f6085efcd7c4f2c4583639339d533e78a160

Since I have a lot of repos, this could potentially reduce my disk usage a lot. Is this a bad idea?

@dubiouscript
Copy link

dubiouscript commented Jul 13, 2019

Is this a bad idea?

-edit-
#43 (comment)

i dk tbh , but i hear less is more &&

this

replacing local clones with symlinks works

made me thunk of
https://github.com/taterbase/git-mount
that! * why copy or link when you could 💡 mount *

... i think in the past i have used the symlink method , but
#307

to configure hundreds of repos, and the Searchers may take a long time.

so at that point i stopped hounding the source

+ #214 (comment)

There have been a few attempts to add a feature to Hound where you can use an existing repository without making a copy, but Hound currently assumes that the repository files will not be edited during indexing and that's a hard thing to enforce on an external directory.

@salemhilal
Copy link
Contributor

I'm going to close this issue for now. If there are outstanding questions, feel free to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants