Code

History

Commits on git-command-v0.2.4 to git-config/src/file/mutable35+
  1. feat: add `File::write_to_filter()` to have a filter select the section to write. (#737)Sebastian Thiel committed 3 years ago4b424ab
  2. thanks clippySebastian Thiel committed 3 years agobac57dd
  3. thanks clippySebastian Thiel committed 3 years ago9e04685
  4. feat: `SectionMut::push_with_comment(key, comment)` to add a new variable with a comment.Sebastian Thiel committed 3 years ago5b9bffe
  5. fix: `file::SectionMut::push()` now properly creates empty values. (#450)Sebastian Thiel committed 4 years ago7d92c61
  6. fix: greatly improve whitespace handling when removing values.Sebastian Thiel committed 4 years ago9c1e639
  7. fix: Properly handle boolean values such that `a` is true but `a=` is false. (#450)Sebastian Thiel committed 4 years ago08c50a4
  8. thanks clippySebastian Thiel committed 4 years ago2770431
  9. feat!: `file::SectionMut::push()` now supports values without key-value separator. (#450)Sebastian Thiel committed 4 years agob6cd6ac
  10. thanks clippySebastian Thiel committed 4 years ago4bd747c
  11. make fmtSebastian Thiel committed 4 years ago47724c0
  12. feat: `file::ValueMut::(section|into_section_mut)()` to go from value to the owning section. (#331)Sebastian Thiel committed 4 years agofff0884
  13. fix: maintain newline format depending on what's present or use platform default. (#331)Sebastian Thiel committed 4 years agof7bd2ca
  14. change!: rename `file::SectionBody` to `file::section::Body`. (#331)Sebastian Thiel committed 4 years agob672ed7
  15. change!: Remove `File::sections_by_name_with_header()` as `::sections_by_name()` now returns entire sections. (#331)Sebastian Thiel committed 4 years ago3bea26d
  16. change!: All accessors in `File` are now using `impl AsRef<str>` where possible for added comfort. (#331)Sebastian Thiel committed 4 years ago3de0cfd
  17. change!: Much more comfortable API `file::*Mut` types thanks to `impl Into/AsRef`. (#331)Sebastian Thiel committed 4 years ago3d25fe6
  18. change!: Rename `Mutable*` into `$1Mut` for consistency. (#331)Sebastian Thiel committed 4 years ago393b392
  19. fix: `file::MutableSection::remove()` now actually removes keys _and_ values. (#331)Sebastian Thiel committed 4 years ago94dde44
  20. many more tests for MutableSection (#331)Sebastian Thiel committed 4 years agoac843cb
  21. refactor (#331)Sebastian Thiel committed 4 years ago701266e
  22. make fmtSebastian Thiel committed 4 years agoaa9fdb0
  23. change!: conform APIs of `file::MutableValue` and `file::MutableMultiValue`. (#331)Sebastian Thiel committed 4 years ago0a7391a
  24. fix: `file::MutableMultiValue` escapes input values and maintains key separator specific whitespace. (#331)Sebastian Thiel committed 4 years ago048b925
  25. thanks clippySebastian Thiel committed 4 years agoc9a2390
  26. feat: place spaces around `key = value` pairs, or whatever is used in the source configuration. (#331)Sebastian Thiel committed 4 years ago5418bc7
  27. avoid extra copies when setting values and escaping them (#331)Sebastian Thiel committed 4 years agoa7eff01
  28. refactor (#331)Sebastian Thiel committed 4 years ago15cd1d2
  29. default space is just a single tab, not two ones (#331)Sebastian Thiel committed 4 years ago7e03b83
  30. feat: proper escaping of value bytes to allow round-tripping after mutation (#331)Sebastian Thiel committed 4 years ago8118644
  31. refactor (#331)Sebastian Thiel committed 4 years agoafa736a
  32. a few tests for `MutableValue` showing that it's too buggy right now (#331)Sebastian Thiel committed 4 years ago5e6f9d9
  33. change!: rename `file::MutableSection::set_leading_space()` to `set_leading_whitespace()`. (#331)Sebastian Thiel committed 4 years ago83a0922
  34. feat: whitespace in newly pushed keys is derived from first section value. (#331)Sebastian Thiel committed 4 years ago9f59356
  35. feat: whitespace in mutable sections can be finely controlled, and is derived from existing sections (#331)Sebastian Thiel committed 4 years ago9157717