diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-08-30 16:38:55 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-03 12:33:52 +0000 |
commit | 22f7beaf2b554e497dcec3198272b528654d5547 (patch) | |
tree | 23fa64d7bde2cc1b5f81f12e3f6f761c7f81c7d8 | |
parent | 6007aee36e11a58793a603c4451ba12a3ddfdb2d (diff) | |
download | jgit-22f7beaf2b554e497dcec3198272b528654d5547.tar.gz jgit-22f7beaf2b554e497dcec3198272b528654d5547.zip |
Remove deprecated CheckoutCommand#setForce method
Change-Id: I39cfbeba0171c66e0f03b7b3785313da55b1dcac
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java index c133219d4d..32c242f271 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java @@ -644,24 +644,6 @@ public class CheckoutCommand extends GitCommand<Ref> { /** * Specify to force the ref update in case of a branch switch. * - * @param force - * if <code>true</code> and the branch with the given name - * already exists, the start-point of an existing branch will be - * set to a new start-point; if false, the existing branch will - * not be changed - * @return this instance - * @deprecated this method was badly named comparing its semantics to native - * git's checkout --force option, use - * {@link #setForceRefUpdate(boolean)} instead - */ - @Deprecated - public CheckoutCommand setForce(boolean force) { - return setForceRefUpdate(force); - } - - /** - * Specify to force the ref update in case of a branch switch. - * * In releases prior to 5.2 this method was called setForce() but this name * was misunderstood to implement native git's --force option, which is not * true. |