vcsh icon indicating copy to clipboard operation
vcsh copied to clipboard

Better support for cloning to a different directory name?

Open rchady opened this issue 9 years ago • 1 comments

Is there a better way to clone a repository to a different name than it is hosted under? For example, normally with git you can do

git clone [email protected]:repo some_other_name

and it will work. If you do that with vcsh, it just changes the name of the directory used in .config/vcsh/repo.d and just drops the files in to $HOME.

I know about VCSH_BASE, but the usage pattern seems backwards to me. I would rather have an env variable to set for changing the repo.d directory name and allow specifying where to check something out to on the command line.

This would allow you to do things like

vcsh clone [email protected]:repo .some_other_dir

and it would place the files in to $PWD/.some_other_dir, just like git normally would. This would make vcsh much easier to use for things outside of just managing $HOME files.

rchady avatar Oct 22 '15 16:10 rchady

This sounds similar to what the agnostic branch tries to do.

The short answer is that there are a lot of ways to shoot your own foot with that and I would need a way to be sure that's not too likely to happen.

https://github.com/RichiH/vcsh/pull/115 https://github.com/RichiH/vcsh/tree/feature/agnostic

RichiH avatar Nov 29 '15 11:11 RichiH