Skip to content

Commit 0ed0a89

Browse files
committed
feat: make verbose-object-parsing-errors available in gix.
That way, it's easy to create programs that are geared towards debugging repositories and finding invalid objects with detailed errors.
1 parent bc44497 commit 0ed0a89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gix/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ fast-sha1 = [ "gix-features/fast-sha1" ]
176176
#!
177177
#! The catch-all of feature toggles.
178178

179+
## When parsing objects by default errors will only be available on the granularity of success or failure, and with the above flag enabled
180+
## details information about the error location will be collected.
181+
## Use it in applications which expect broken or invalid objects or for debugging purposes.
182+
## Incorrectly formatted objects aren't very common otherwise.
183+
verbose-object-parsing-errors = ["gix-object/verbose-object-parsing-errors"]
184+
179185
## Data structures implement `serde::Serialize` and `serde::Deserialize`.
180186
serde = [ "dep:serde",
181187
"gix-pack/serde",

0 commit comments

Comments
 (0)