| Modifier and Type | Class and Description |
|---|---|
| public static enum | CommitConfig.
How to clean up commit messages when committing. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private CommitConfig. | |
| private static final char[] | |
| private char | |
| private String | |
| private static final String | |
| private static final Charset | |
| private String | |
| public static final Config. | KEY
Key for |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the processed texttext to process text, CommitConfig.CleanupMode to useProcesses a text according to the given |
| public static char | Returns: the comment character, or(char) 0 if none could be
determinedto get a comment character for text)Determines a comment character by choosing one from a limited set of 7-bit ASCII characters that do not occur in the given text at the beginning of any line. |
| public CommitConfig. | |
| public char | Returns: the character to use for comments in commit messagesRetrieves the comment character set by git config
|
| public char | Returns: the character to useexisting text text)Determines the comment character to use for a particular text. |
| public String | Returns: the encoding ornull if not present.Get the encoding of the commit as defined in the git
|
| public String | Returns: content of the commit template ornull if not present.to resolve relative path in local git repo config repository)Get the content to the commit template as defined in
|
| public String | Returns: the path to commit template ornull if not present.Get the path to the commit template as defined in the git
|
| private Charset | |
| public boolean | Returns: true if git config core.commentChar is "auto"Tells whether the comment character should be determined by choosing a character not occurring in a commit message. |
| private static boolean | |
| public CommitConfig. | Returns: themode, if it is not CleanupMode#DEFAULT,
otherwise the resolved mode, which is never
CleanupMode#DEFAULTCleanupMode to resolveif defaultStrip)true return CleanupMode#STRIP if the git
config is also "default", otherwise return
CleanupMode#WHITESPACEComputes a non-default |
| autoCommentChar | back to summary |
|---|---|
| private boolean autoCommentChar | |
| cleanupMode | back to summary |
|---|---|
| private CommitConfig. | |
| COMMENT_CHARS | back to summary |
|---|---|
| private static final char[] COMMENT_CHARS | |
| commentCharacter | back to summary |
|---|---|
| private char commentCharacter | |
| commitTemplatePath | back to summary |
|---|---|
| private String commitTemplatePath | |
| CUT | back to summary |
|---|---|
| private static final String CUT | |
| DEFAULT_COMMIT_MESSAGE_ENCODING | back to summary |
|---|---|
| private static final Charset DEFAULT_COMMIT_MESSAGE_ENCODING | |
| i18nCommitEncoding | back to summary |
|---|---|
| private String i18nCommitEncoding | |
| KEY | back to summary |
|---|---|
| public static final Config. Key for | |
| CommitConfig | back to summary |
|---|---|
| private CommitConfig(Config rc) | |
| cleanText | back to summary |
|---|---|
| public static String cleanText(String text, CommitConfig. Processes a text according to the given
| |
| determineCommentChar | back to summary |
|---|---|
| public static char determineCommentChar(String text) Determines a comment character by choosing one from a limited set of
7-bit ASCII characters that do not occur in the given text at the
beginning of any line. If none can be determined,
| |
| getCleanupMode | back to summary |
|---|---|
| public CommitConfig. Retrieves the
| |
| getCommentChar | back to summary |
|---|---|
| public char getCommentChar() Retrieves the comment character set by git config
| |
| getCommentChar | back to summary |
|---|---|
| public char getCommentChar(String text) Determines the comment character to use for a particular text. If
| |
| getCommitEncoding | back to summary |
|---|---|
| public String getCommitEncoding() Get the encoding of the commit as defined in the git
| |
| getCommitTemplateContent | back to summary |
|---|---|
| public String getCommitTemplateContent(Repository repository) throws FileNotFoundException, IOException, ConfigInvalidException Get the content to the commit template as defined in
| |
| getCommitTemplatePath | back to summary |
|---|---|
| public String getCommitTemplatePath() Get the path to the commit template as defined in the git
| |
| getEncoding | back to summary |
|---|---|
| private Charset getEncoding() throws ConfigInvalidException | |
| isAutoCommentChar | back to summary |
|---|---|
| public boolean isAutoCommentChar() Tells whether the comment character should be determined by choosing a character not occurring in a commit message.
| |
| isComment | back to summary |
|---|---|
| private static boolean isComment(String text, char commentChar) | |
| resolve | back to summary |
|---|---|
| public CommitConfig. Computes a non-default
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CommitConfig. | DEFAULT
Use |
| public static final CommitConfig. | SCISSORS
Omit everything from the first "scissor" line on, then apply
|
| public static final CommitConfig. | STRIP
|
| public static final CommitConfig. | VERBATIM
Make no changes. |
| public static final CommitConfig. | WHITESPACE
Remove trailing whitespace and leading and trailing empty lines; collapse multiple empty lines to a single one. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matchConfigValue(String
the string to match in)Implements org. Checks if the given string matches with enum value. |
| public String | toConfigValue()
Implements org. Converts enumeration value into a string to be save in config. |
| public static CommitConfig. | |
| public static CommitConfig. |
| DEFAULT | back to summary |
|---|---|
| public static final CommitConfig. Use | |
| SCISSORS | back to summary |
|---|---|
| public static final CommitConfig. Omit everything from the first "scissor" line on, then apply
| |
| STRIP | back to summary |
|---|---|
| public static final CommitConfig.
| |
| VERBATIM | back to summary |
|---|---|
| public static final CommitConfig. Make no changes. | |
| WHITESPACE | back to summary |
|---|---|
| public static final CommitConfig. Remove trailing whitespace and leading and trailing empty lines; collapse multiple empty lines to a single one. | |
| CleanupMode | back to summary |
|---|---|
| private CleanupMode() | |
| matchConfigValue | back to summary |
|---|---|
| public boolean matchConfigValue(String in) Implements org. Doc from org. Checks if the given string matches with enum value. | |
| toConfigValue | back to summary |
|---|---|
| public String toConfigValue() Implements org. Doc from org. Converts enumeration value into a string to be save in config. | |
| valueOf | back to summary |
|---|---|
| public static CommitConfig. | |
| values | back to summary |
|---|---|
| public static CommitConfig. | |