diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-01-05 15:53:34 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-01-05 15:55:19 +0100 |
commit | 62ed46da16fb885180190f671ec2b6693bc440c3 (patch) | |
tree | c33d8254ae2aa5cfe674722b752072951dc6a8e0 /org.eclipse.jgit/src/org/eclipse/jgit/lib | |
parent | af87046e5609097ad9d9e722b202ccefffb404a5 (diff) | |
parent | 82b5aaf7e3e3f881056dd2d4486e02537b0493da (diff) | |
download | jgit-62ed46da16fb885180190f671ec2b6693bc440c3.tar.gz jgit-62ed46da16fb885180190f671ec2b6693bc440c3.zip |
Merge branch 'stable-6.1' into stable-6.2
* stable-6.1:
Introduce core.trustPackedRefsStat config
Fix documentation for core.trustFolderStat
Change-Id: Ic78630f74c72624932a384eed52ef79ae1eff3e5
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java | 6 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java index 47a572b83a..4b1a72e224 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java @@ -886,4 +886,10 @@ public final class ConfigConstants { */ public static final String CONFIG_KEY_ABBREV = "abbrev"; + /** + * The "trustPackedRefsStat" key + * + * @since 6.1.1 + */ + public static final String CONFIG_KEY_TRUST_PACKED_REFS_STAT = "trustPackedRefsStat"; } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java index f23c6e08d1..fc82a5fead 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java @@ -116,6 +116,27 @@ public class CoreConfig { ALWAYS } + /** + * Permissible values for {@code core.trustPackedRefsStat}. + * + * @since 6.1.1 + */ + public enum TrustPackedRefsStat { + /** Do not trust file attributes of the packed-refs file. */ + NEVER, + + /** Trust file attributes of the packed-refs file. */ + ALWAYS, + + /** Open and close the packed-refs file to refresh its file attributes + * and then trust it. */ + AFTER_OPEN, + + /** {@code core.trustPackedRefsStat} defaults to this when it is + * not set */ + UNSET + } + private final int compression; private final int packIndexVersion; |