Class AbbrevConfig


  • public final class AbbrevConfig
    extends Object
    Git configuration option core.abbrev
    Since:
    6.1
    • Method Detail

      • capAbbrev

        public static int capAbbrev​(int len)
        Cap configured core.abbrev to range between minimum of 4 and number of hex-digits of a full object id.
        Parameters:
        len - configured number of hex-digits to abbreviate object ids to
        Returns:
        core.abbrev capped to range between minimum of 4 and number of hex-digits of a full object id
      • get

        public int get()
        Get the configured abbreviation length for object ids.
        Returns:
        the configured abbreviation length for object ids