]> git.proxmox.com Git - rustc.git/blobdiff - vendor/gix/src/config/tree/sections/index.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / vendor / gix / src / config / tree / sections / index.rs
index 08f7ec1bd41ce42cc7d6d442efc153b0004d0fed..026f35b6daff733f842744dd9b1bd549b07cc2de 100644 (file)
@@ -7,6 +7,9 @@ impl Index {
     /// The `index.threads` key.
     pub const THREADS: IndexThreads =
         IndexThreads::new_with_validate("threads", &config::Tree::INDEX, validate::IndexThreads);
+    /// The `index.skipHash` key.
+    pub const SKIP_HASH: keys::Boolean = keys::Boolean::new_boolean("skipHash", &config::Tree::INDEX)
+        .with_deviation("also used to skip the hash when reading, even if a hash exists in the index file");
 }
 
 /// The `index.threads` key.
@@ -47,7 +50,7 @@ impl Section for Index {
     }
 
     fn keys(&self) -> &[&dyn Key] {
-        &[&Self::THREADS]
+        &[&Self::THREADS, &Self::SKIP_HASH]
     }
 }