]> source.dussan.org Git - jgit.git/commit
ObjectChecker: honor some git-core fsck.* options 71/63371/4
authorShawn Pearce <spearce@spearce.org>
Wed, 30 Dec 2015 02:21:19 +0000 (18:21 -0800)
committerShawn Pearce <spearce@spearce.org>
Wed, 30 Dec 2015 23:19:09 +0000 (15:19 -0800)
commitac41920a430941b9385889d19e0fc2764ba23474
tree638a92eae172cd3ed36c256160b7e39a409ece35
parentfa7ce0e0f3a8973667b0d51966fc9bcb4fdbe505
ObjectChecker: honor some git-core fsck.* options

Accept some of the same section keys that fsck does in git-core,
allowing repositories to skip over specific kinds of acceptable
broken objects, e.g.:

  [fsck]
    duplicateEntries = ignore
    zeroPaddedFilemode = ignore

The zeroPaddedFilemode = ignore is a synonym for the JGit specific
allowLeadingZeroFileMode = true. Only accept the JGit key if git-core
key was not specified.

Change-Id: Idaed9310e2a5ce5511670ead1aaea2b30aac903c
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/errors/CorruptObjectException.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java