JGIT git dissociate [message #1730259] |
Fri, 22 April 2016 14:55  |
Eclipse User |
|
|
|
Hi,
Does JGIT support git clone --dissociate ? This allows you to clone a project to another place using existing objects from another clone. For instance, let's say I have project A cloned somewhere. I want to make a new clone for another workspace but I do not want to clone it using Internet bandwidth. The eclipse installer uses JGIT for its git tasks, and one of them is cloning a repo, where you can select an existing repo on your local machine. Unfortunately, this will only link the repo to the other repo, thus having two workspaces working on one repo. Dissociate would allow to have the latest changes from the remote repo, while still limiting object transfers. See this bug for more information : https://bugs.eclipse.org/bugs/show_bug.cgi?id=468100
A simple copy would not work in this case, as sometimes the repo source is not up-to-date, and we may not want to copy its changes too.
BR,
Patrick
|
|
|
Re: JGIT git dissociate [message #1730582 is a reply to message #1730259] |
Tue, 26 April 2016 17:21  |
Eclipse User |
|
|
|
No, this isn't yet supported.
There is some support for alternate object directories:
RepositoryBuilder.addAlternateObjectDirectories() allows to set alternate object directories.
Though I didn't try this myself.
|
|
|
Powered by
FUDForum. Page generated in 0.02627 seconds