]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated CheckoutCommand#setForce method 41/1200241/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 14:38:55 +0000 (16:38 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 12:33:52 +0000 (12:33 +0000)
Change-Id: I39cfbeba0171c66e0f03b7b3785313da55b1dcac

org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java

index c133219d4d574c15b14cb941f76c8da3a6fcc0f8..32c242f27147dd343582a9e8e417f00fc2d073c8 100644 (file)
@@ -641,24 +641,6 @@ public class CheckoutCommand extends GitCommand<Ref> {
                return this;
        }
 
-       /**
-        * 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.
         *