Code

History

Commits on git-commitgraph-v0.13.0 to git-config/tests/file/mutable35+
  1. feat: `SectionMut::push_with_comment(key, comment)` to add a new variable with a comment.Sebastian Thiel committed 3 years ago5b9bffe
  2. feat: comfort API like `string_by_key(key)` takes a key like `"remote.origin.url"`, add `section_by_key("remote.origin")` as well.Sebastian Thiel committed 3 years ago5fa9546
  3. fix!: subsections are identified as `&BStr` in entire API.Sebastian Thiel committed 3 years ago0c98ec8
  4. feat!: upgrade edition to 2021 in most crates.Sebastian Thiel committed 3 years ago3d8fa8f
  5. make fmtSebastian Thiel committed 4 years agoea2136b
  6. fix: `file::SectionMut::push()` now properly creates empty values. (#450)Sebastian Thiel committed 4 years ago7d92c61
  7. fix: greatly improve whitespace handling when removing values.Sebastian Thiel committed 4 years ago9c1e639
  8. feat: Add various methods to iterate sections along with their id, and mutate them.Sebastian Thiel committed 4 years ago5df2a2a
  9. fix config tests on windows (#450)Sebastian Thiel committed 4 years ago7a871c2
  10. feat!: `file::SectionMut::push()` now supports values without key-value separator. (#450)Sebastian Thiel committed 4 years agob6cd6ac
  11. feat: `File::section_mut_or_create_new_filter()` to allow chosing which sections to add values to. (#450)Sebastian Thiel committed 4 years ago17455c9
  12. feat: `File::section_mut_or_create_new(…)` to obtain an existing or new section for mutation. (#450)Sebastian Thiel committed 4 years ago5902f54
  13. make fmtSebastian Thiel committed 4 years ago47724c0
  14. fix windows tests (#331)Sebastian Thiel committed 4 years agofbcf40e
  15. serializations maintains some invariants about whitespace where possible. (#331)Sebastian Thiel committed 4 years agoee10dd5
  16. fix: maintain newline format depending on what's present or use platform default. (#331)Sebastian Thiel committed 4 years agof7bd2ca
  17. change!: Remove `File::sections_by_name_with_header()` as `::sections_by_name()` now returns entire sections. (#331)Sebastian Thiel committed 4 years ago3bea26d
  18. change!: Much more comfortable API `file::*Mut` types thanks to `impl Into/AsRef`. (#331)Sebastian Thiel committed 4 years ago3d25fe6
  19. change!: Rename `Mutable*` into `$1Mut` for consistency. (#331)Sebastian Thiel committed 4 years ago393b392
  20. fix: `file::MutableSection::remove()` now actually removes keys _and_ values. (#331)Sebastian Thiel committed 4 years ago94dde44
  21. thanks clippySebastian Thiel committed 4 years ago3ca8027
  22. many more tests for MutableSection (#331)Sebastian Thiel committed 4 years agoac843cb
  23. make fmtSebastian Thiel committed 4 years agoaa9fdb0
  24. change!: conform APIs of `file::MutableValue` and `file::MutableMultiValue`. (#331)Sebastian Thiel committed 4 years ago0a7391a
  25. fix: `file::MutableMultiValue` escapes input values and maintains key separator specific whitespace. (#331)Sebastian Thiel committed 4 years ago048b925
  26. thanks clippySebastian Thiel committed 4 years agoc9a2390
  27. feat: place spaces around `key = value` pairs, or whatever is used in the source configuration. (#331)Sebastian Thiel committed 4 years ago5418bc7
  28. avoid extra copies when setting values and escaping them (#331)Sebastian Thiel committed 4 years agoa7eff01
  29. refactor (#331)Sebastian Thiel committed 4 years ago15cd1d2
  30. more empty-value tests (#331)Sebastian Thiel committed 4 years ago511985a
  31. default space is just a single tab, not two ones (#331)Sebastian Thiel committed 4 years ago7e03b83
  32. feat: proper escaping of value bytes to allow round-tripping after mutation (#331)Sebastian Thiel committed 4 years ago8118644
  33. refactor (#331)Sebastian Thiel committed 4 years agoafa736a
  34. a few tests for `MutableValue` showing that it's too buggy right now (#331)Sebastian Thiel committed 4 years ago5e6f9d9
  35. change!: rename `file::MutableSection::set_leading_space()` to `set_leading_whitespace()`. (#331)Sebastian Thiel committed 4 years ago83a0922