Package org.springframework.boot.info
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 SummaryNested classes/interfaces inherited from class org.springframework.boot.info.InfoPropertiesInfoProperties.Entry
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 org.springframework.boot.info.InfoPropertiesget, getInstant, iterator, toPropertySourceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
GitProperties
 
- 
- 
Method Details- 
getBranchReturn the name of the branch ornull.- Returns:
- the branch
 
- 
getCommitIdReturn the full id of the commit ornull.- Returns:
- the full commit id
 
- 
getShortCommitIdReturn the abbreviated id of the commit ornull.- Returns:
- the short commit id
 
- 
getCommitTimeReturn the timestamp of the commit ornull.If the original value could not be parsed properly, it is still available with the commit.timekey.- Returns:
- the commit time
- See Also:
 
 
-