git clone without rebase config [message #1830592] |
Wed, 29 July 2020 09:49  |
Eclipse User |
|
|
|
When setting up eclipse with workspaces for specific projects via oomph, we currently allow the user to either clone a predefined git repository automatically or to provide a location of an existing clone manually.
We noticed, that when we clone the repository automatically via the GitCloneTask, the local clone automatically gets setup with a "rebase" configuration for the branch:
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
This differs to a default manual checkout, which has no value set and relies on either a value in the global user configuration or to just use the regular default (which is merge).
As using "Import..." -> "Git" -> "Projects from Git" does not have that behavior I guess it's something hardcoded into Oomph?
Is there a possibility to remove that configuration? I think overwriting it with a config section in the setup model will allow us to disable it, but it would probably still overwrite the users default settings.
|
|
|
|
|
|
|
|
|
Re: git clone without rebase config [message #1830755 is a reply to message #1830739] |
Mon, 03 August 2020 05:28   |
Eclipse User |
|
|
|
I'm not sure exactly how to interpret the documentation. From the documentation, I get the sense that the value of the rebase property can be "true", "preserve", "interactive", and "merges ", but playing with the EGit settings, I only see it setting the rebase property to "true", "preserve", "interactive", and "false", and once set, there is no way to remove it entirely. I'd want to ask the EGit experts for clarification on this.
But I can imagine defining an EEnum in the Git.core model with similar (the same) choices as EGit has for this, though as you suggest with an additional option (enumerator) for removing the property entirely (or not setting it at all). This could then be used as the type a rebase attribute on the GitCloneTask for directing the behavior and could then be used in GitCloneTaskImpl to change the current hard coded behavior.
You could use the following to set up a development environment to contribute such a feature:
https://www.eclipse.org/setups/installer/?url=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/configurations/OomphConfiguration.setup&show=true
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04519 seconds