Skip to content

Commit f6c0e6d

Browse files
committed
lower-case json fields for consistency (#287)
1 parent 9f8d61f commit f6c0e6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gitoxide-core/src/repository.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ pub mod verify {
5959
serde_json::to_writer_pretty(
6060
out,
6161
&serde_json::json!({
62-
"index-statistics" : outcome.index_statistics,
63-
"loose-object-stores" : outcome.loose_object_stores
62+
"index_statistics" : outcome.index_statistics,
63+
"loose_object-stores" : outcome.loose_object_stores
6464
}),
6565
)?;
6666
}

tests/snapshots/plumbing/repository/verify/success-format-json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"index-statistics": [],
3-
"loose-object-stores": [
2+
"index_statistics": [],
3+
"loose_object-stores": [
44
{
55
"path": "./.git/objects",
66
"statistics": {

0 commit comments

Comments
 (0)