Class RefTreeNames


  • public class RefTreeNames
    extends java.lang.Object
    Magic reference name logic for RefTrees.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RefTreeNames()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isRefTree​(RefDatabase refdb, java.lang.String ref)
      Determine if the reference is likely to be a RefTree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STAGE

        private static final java.lang.String STAGE
        Suffix used on a RefTreeDatabase.getTxnNamespace() for user data.

        A RefTreeDatabase's namespace may include a subspace (e.g. "refs/txn/stage/") containing commit objects from the usual user portion of the repository (e.g. "refs/heads/"). These should be packed by the garbage collector alongside other user content rather than with the RefTree.

        See Also:
        Constant Field Values
    • Constructor Detail

      • RefTreeNames

        private RefTreeNames()
    • Method Detail

      • isRefTree

        public static boolean isRefTree​(RefDatabase refdb,
                                        java.lang.String ref)
        Determine if the reference is likely to be a RefTree.
        Parameters:
        refdb - database instance.
        ref - reference name.
        Returns:
        true if the reference is a RefTree.