Files
heartwood/.typos.toml
T
Lorenz Leutgeb f8b5bde40a surf: Refactor
Refactor the `radicle-surf` crate to use OIDs from `radicle-oid` instead
of `radicle-git-ext`, and `radicle-git-ref-format` instead of re-exports
from `radicle-git-ext`. Also remove the dependency `radicle-std-ext`.

This requires changing `use`s, and an ad-hoc reimplementation of
`ResultExt::or_matches`.

The remaining changes (excl. tests) are automatic via `rustfmt` and
`cargo clippy`.

For testing, implement reconstruction of

    https://github.com/radicle-dev/git-platinum

in particular of the commits
 - a0dd9122d33dff2a35f564d564db127152c88e02
 - 27acd68c7504755aa11023300890bb85bbd69d45
 - e972683fe8136bf8a5cb2378cf50303554008049
and some tags.

`…/src/test/roundtrip.rs` was copied from the `test-helpers` crate in
the radicle-git workspace.

`…/src/test/{repository.rs,gen*}` was copied from the `radicle-git-ext`
crate in the radicle-git workspace.
2026-07-24 16:27:02 +02:00

41 lines
1.3 KiB
TOML

[default]
extend-ignore-re = [
"[0-9a-f]{7}\\.\\.\\.?[0-9a-f]{7}", # Git range between two short commit IDs
"[0-9a-f]{7}\\[\\.\\.\\]", # Shortened commit IDs as written in tests
"did:key:z6Mk[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{44}",
"rad://z[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}",
"rad:z[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}",
"z6Mk[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{44}",
]
[default.extend-identifiers]
"typ" = "typ" # We may write "typ" instead of "type". The latter is a Rust keyword.
[type.codespell]
check-file = false
extend-glob = [".codespellrc"]
[type.md]
extend-ignore-re = [
"(Author:|author|committer) radicle ", # Commit Metadata
"/radicle:", # User Agent fragment
"\"radicle",
"\\.radicle", # Path fragment of default `$RAD_HOME`
"`radicle`",
"radicle heartwood protocol & stack", # Old fixture.
"radicle-\\w+", # Crates in Cargo style
"radicle\\.((example|zulipchat)\\.com|dev|network|xyz)", # URLs
"radicle\\w*::", # Crates in Rust code style
"xyz\\.radicle\\.(issue|patch|id)", # COB Type Names
]
[type.md.extend-identifiers]
"radicle" = "Radicle"
[files]
extend-exclude = [
"crates/radicle-surf/src/test/platinum",
"simulation/modules/radicle-node/cue.mod"
]