-
Deprecated Classes
-
Deprecated FieldsFieldDescriptionUse
StandardCharsets.UTF_8directly instead.UseStandardCharsets.UTF_8directly instead.Callers should usePacketLineIn.isDelimiter(String)to check if a string is the delimiter.Callers should usePacketLineIn.isEnd(String)to check if a string is the end marker, orPacketLineIn.readStrings()to iterate over all strings in the input stream until the marker is reached.useStandardCharsets.UTF_8instead
-
Deprecated MethodsMethodDescriptionthis method was badly named comparing its semantics to native git's checkout --force option, use
CheckoutCommand.setForceRefUpdate(boolean)insteaduseStashApplyCommand.setRestoreIndex(boolean)insteaduseStashApplyCommand.setRestoreUntracked(boolean)insteaduseDirCacheEntry.getLastModifiedInstant()insteaduseDirCacheEntry.mightBeRacilyClean(Instant)insteaduseDirCacheEntry.setLastModified(Instant)insteadno widely used Git versions need this any moreno widely used Git versions need this any moreuseFileSnapshot.lastModifiedInstant()insteaduseFileSnapshot.save(Instant)instead.useLockFile.getCommitLastModifiedInstant()insteadusecfg.install()to avoid internal reference.useAnyObjectId.isEqual(AnyObjectId, AnyObjectId)insteaduseObjectBuilder.setEncoding(Charset)instead.since 5.6; default value depends on whether the repository is bare. UseConfig.getEnum(String, String, String, Enum)directly.UseRefDatabase.findRef(String)instead.useRefDatabase.getRefsByPrefix(java.lang.String)insteadusegetRefDatabase().getRefs()instead.usegetRefDatabase().getRefsByPrefix(R_TAGS)insteadusegetObjectDatabase().has(objectId)usegetRefDatabase().peel(ref)instead.since 5.11; useTagBuilder.build()insteadsince 6.1; useMergeMessageFormatter.formatWithConflicts(String, Iterable, char)insteaduseObjectReader#createObjectReachabilityChecker(ObjectWalk)instead.useObjectReader#createReachabilityChecker(RevWalk)instead.useWindowCacheStats.getOpenByteCount()insteaduseWindowCacheStats.getOpenFileCount()insteadno widely used Git versions need this any moreuseRefAdvertiser.send(Collection)instead.since 5.2; useJschSession.getFtpChannel()insteadUseTransport.getFilterSpec()insteadUseTransport.setFilterSpec(FilterSpec)insteadUseUploadPack.getFilterSpec()insteadinternal use onlyuseFileUtils.lastModifiedInstant(Path)instead which returns FileTimeuse getLastModifiedInstant insteaduseFS.createNewFileAtomic(File)insteaduseFS.lastModifiedInstant(Path)insteadUseFS.FileStoreAttributes.setBackground(boolean)insteaduseFS.setLastModified(Path, Instant)instead
-
Deprecated ConstructorsConstructorDescriptionsince 6.1, use
AttributesHandler(TreeWalk, Supplier)insteadsince 5.9, useAutoLFInputStream.create(InputStream, StreamFlag...)insteadsince 5.9, useAutoLFInputStream.create(InputStream, StreamFlag...)instead
FirstCommandinstead.