]> source.dussan.org Git - jgit.git/commitdiff
CoreConfig: remove deprecated #isLogAllRefUpdates method 97/1200397/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 15:32:04 +0000 (17:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: I4e5f96696b57512488f48e66a82760b2e8671878

org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java

index 9fa5d75a3fe3b91c665cc9d35bcdc165b0ce522d..49602a75eb607cf0493bbbf80bfa0c1658f0cc36 100644 (file)
@@ -163,8 +163,6 @@ public class CoreConfig {
 
        private final int packIndexVersion;
 
-       private final LogRefUpdates logAllRefUpdates;
-
        private final String excludesfile;
 
        private final String attributesfile;
@@ -205,9 +203,6 @@ public class CoreConfig {
                                ConfigConstants.CONFIG_KEY_COMPRESSION, DEFAULT_COMPRESSION);
                packIndexVersion = rc.getInt(ConfigConstants.CONFIG_PACK_SECTION,
                                ConfigConstants.CONFIG_KEY_INDEXVERSION, 2);
-               logAllRefUpdates = rc.getEnum(ConfigConstants.CONFIG_CORE_SECTION, null,
-                               ConfigConstants.CONFIG_KEY_LOGALLREFUPDATES,
-                               LogRefUpdates.TRUE);
                excludesfile = rc.getString(ConfigConstants.CONFIG_CORE_SECTION, null,
                                ConfigConstants.CONFIG_KEY_EXCLUDESFILE);
                attributesfile = rc.getString(ConfigConstants.CONFIG_CORE_SECTION,
@@ -235,20 +230,6 @@ public class CoreConfig {
                return packIndexVersion;
        }
 
-       /**
-        * Whether to log all refUpdates
-        *
-        * @return whether to log all refUpdates
-        * @deprecated since 5.6; default value depends on whether the repository is
-        *             bare. Use
-        *             {@link Config#getEnum(String, String, String, Enum)}
-        *             directly.
-        */
-       @Deprecated
-       public boolean isLogAllRefUpdates() {
-               return !LogRefUpdates.FALSE.equals(logAllRefUpdates);
-       }
-
        /**
         * Get path of excludesfile
         *