Commit 77a3a1b
committed
fix: Use less ambiguous "kB" for SI kilobyte
`gix free pack verify --statistics` formerly used "KB" for
kilobytes (i.e., SI decimal kilobytes, units of 1000 bytes). This
was somewhat ambiguous because it is occasionally also used for
kibibytes (i.e., IEC binary kibibytes, units of 1024 bytes).
Kilobytes and kibibytes can be more precisely distinguished by
using kB for kilobytes (since "k" is the SI prefix for "kilo") and
KiB for kibibytes (since decimal kilobytes are never written KiB).
This adapts `gitoxide-core` to changes in `bytesize` and, in so
doing, allows the SI unit symbol "kB" to be used.
Fixes #19471 parent 2fc48a1 commit 77a3a1b
File tree
3 files changed
+16
-16
lines changed- gitoxide-core/src/pack
- tests/snapshots/plumbing/no-repo/pack/verify
- multi-index
3 files changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments