[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Why no --rebase support for pull?

Hi,

I noticed that there is no support for the --rebase flag in the PullCommand class. However, there is pull --rebase support, but you first have to configure the branch to use --rebase by default, like this:

config.setBoolean("branch", "master", "rebase", true);

It should be trivial to add a method, setRebase(boolean), to PullCommand in order to support pulling with the --rebase flag without changing the repo config.

Is there a reason this is not implemented? I would be happy to do it, if it's not obvious that it wouldn't be accepted.

Regards,
Mikael Karlsson