Class GitProperties
java.lang.Object
org.springframework.boot.info.InfoProperties
org.springframework.boot.info.GitProperties
- All Implemented Interfaces:
Iterable<InfoProperties.Entry>
@ImportRuntimeHints(org.springframework.boot.info.GitProperties.GitPropertiesRuntimeHints.class)
public class GitProperties
extends InfoProperties
Provide git-related information such as commit id and time.
- Since:
- 1.4.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested classes/interfaces inherited from class InfoProperties
InfoProperties.Entry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the branch ornull.Return the full id of the commit ornull.Return the timestamp of the commit ornull.Return the abbreviated id of the commit ornull.Methods inherited from class InfoProperties
get, getInstant, iterator, toPropertySourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
GitProperties
-
-
Method Details
-
getBranch
-
getCommitId
-
getShortCommitId
-
getCommitTime
-