]> source.dussan.org Git - jgit.git/commit
Provide git config commit.cleanup 23/189723/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 15 Jan 2022 21:51:06 +0000 (22:51 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 30 Jan 2022 23:42:35 +0000 (00:42 +0100)
commit318a25f0e62553ee771962369462d54f0e8870c8
tree00ebb1251ecf4d23e1b46147b09388ff9b1af38f
parent2b01ac3389c11be88ec875048d6a2cc4ed6903f1
Provide git config commit.cleanup

Add an enumeration for the possible values, and a method to resolve the
"default" value. Give CommitConfig a static method to process a text
according to a given clean-up mode and comment character.

(The core.commentChar is not yet handled by JGit; it's hard-coded as #.)

Bug: 553065
Change-Id: If6e384522275f73b713fbc29ffcaa1753c239dea
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/CommitConfigTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java