mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
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.
41 lines
1.3 KiB
TOML
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"
|
|
]
|
|
|