public class CommitConfig extends Object
Modifier and Type | Field and Description |
---|---|
static Config.SectionParser<CommitConfig> |
KEY
Key for
Config.get(SectionParser) . |
Modifier and Type | Method and Description |
---|---|
String |
getCommitEncoding()
Get the encoding of the commit as defined in the git
i18n.commitEncoding property. |
String |
getCommitTemplateContent()
Get the content to the commit template as defined in
commit.template . |
String |
getCommitTemplatePath()
Get the path to the commit template as defined in the git
commit.template property. |
public static final Config.SectionParser<CommitConfig> KEY
Config.get(SectionParser)
.@Nullable public String getCommitTemplatePath()
commit.template
property.null
if not present.@Nullable public String getCommitEncoding()
i18n.commitEncoding
property.null
if not present.@Nullable public String getCommitTemplateContent() throws FileNotFoundException, IOException, ConfigInvalidException
commit.template
. If no i18n.commitEncoding
is specified,
UTF-8 fallback is used.null
if not present.IOException
- if the template file can not be readFileNotFoundException
- if the template file does not existsConfigInvalidException
- if a commitEncoding
is specified and is invalidCopyright © 2021 Eclipse JGit Project. All rights reserved.