[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jgit-dev] Why no --rebase support for pull?
- From: Mikael Karlsson <mmmicke@xxxxxxxxx>
- Date: Tue, 15 May 2012 09:59:07 +0200
- Delivered-to: email@example.com
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.