org.springframework.boot.info

Class GitProperties

    • Constructor Detail

      • GitProperties

        public GitProperties(Properties entries)
    • Method Detail

      • getBranch

        public String getBranch()
        Return the name of the branch or null.
        Returns:
        the branch
      • getCommitId

        public String getCommitId()
        Return the full id of the commit or null.
        Returns:
        the full commit id
      • getShortCommitId

        public String getShortCommitId()
        Return the abbreviated id of the commit or null.
        Returns:
        the short commit id
      • getCommitTime

        public Instant getCommitTime()
        Return the timestamp of the commit or null.

        If the original value could not be parsed properly, it is still available with the commit.time key.

        Returns:
        the commit time
        See Also:
        InfoProperties.get(String)