Commit 0ec2389
committed
feat!:
A new `gix_config::AsKey` trait allows all `gix_config::File` methods
to receive an implementation of `AsKey` instead of the tuple of
`(section, subsection, value_name)`. This is the default, and all
methods that take a tuple have been renamed to `<name>_by()`, note the `_by` suffix.
The terminology was reworked so that `key` is now only used to identify a value.
This change also affects the public API of `gix`, which provides
ways to set values on configuration snapshots which now by default
will only take a `AsKey` implementation.
Note that `gix::config::tree::*` keys now also implement `AsKey`,
which allows them to be used more conveniently when setting values,
too.gix-config convenience initiative1 parent dbe1f22 commit 0ec2389
File tree
47 files changed
+1042
-588
lines changed- gix-config
- fuzz/fuzz_targets
- src
- file
- access
- init
- mutable
- section
- parse
- nom
- section
- tests
- file
- access/raw
- mutable
- key
- parse
- gix
- src
- clone
- config
- cache
- snapshot
- tree
- remote
- repository/config
- tests/repository/config/config_snapshot
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+1042
-588
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments