Code

History

Commits on git-commitgraph-v0.8.1 to git-config/src/file/mutable/section.rs22
  1. make fmtSebastian Thiel committed 4 years ago47724c0
  2. feat: `file::ValueMut::(section|into_section_mut)()` to go from value to the owning section. (#331)Sebastian Thiel committed 4 years agofff0884
  3. fix: maintain newline format depending on what's present or use platform default. (#331)Sebastian Thiel committed 4 years agof7bd2ca
  4. change!: rename `file::SectionBody` to `file::section::Body`. (#331)Sebastian Thiel committed 4 years agob672ed7
  5. change!: Remove `File::sections_by_name_with_header()` as `::sections_by_name()` now returns entire sections. (#331)Sebastian Thiel committed 4 years ago3bea26d
  6. change!: All accessors in `File` are now using `impl AsRef<str>` where possible for added comfort. (#331)Sebastian Thiel committed 4 years ago3de0cfd
  7. change!: Much more comfortable API `file::*Mut` types thanks to `impl Into/AsRef`. (#331)Sebastian Thiel committed 4 years ago3d25fe6
  8. change!: Rename `Mutable*` into `$1Mut` for consistency. (#331)Sebastian Thiel committed 4 years ago393b392
  9. fix: `file::MutableSection::remove()` now actually removes keys _and_ values. (#331)Sebastian Thiel committed 4 years ago94dde44
  10. many more tests for MutableSection (#331)Sebastian Thiel committed 4 years agoac843cb
  11. make fmtSebastian Thiel committed 4 years agoaa9fdb0
  12. fix: `file::MutableMultiValue` escapes input values and maintains key separator specific whitespace. (#331)Sebastian Thiel committed 4 years ago048b925
  13. feat: place spaces around `key = value` pairs, or whatever is used in the source configuration. (#331)Sebastian Thiel committed 4 years ago5418bc7
  14. avoid extra copies when setting values and escaping them (#331)Sebastian Thiel committed 4 years agoa7eff01
  15. refactor (#331)Sebastian Thiel committed 4 years ago15cd1d2
  16. default space is just a single tab, not two ones (#331)Sebastian Thiel committed 4 years ago7e03b83
  17. feat: proper escaping of value bytes to allow round-tripping after mutation (#331)Sebastian Thiel committed 4 years ago8118644
  18. refactor (#331)Sebastian Thiel committed 4 years agoafa736a
  19. change!: rename `file::MutableSection::set_leading_space()` to `set_leading_whitespace()`. (#331)Sebastian Thiel committed 4 years ago83a0922
  20. feat: whitespace in newly pushed keys is derived from first section value. (#331)Sebastian Thiel committed 4 years ago9f59356
  21. feat: whitespace in mutable sections can be finely controlled, and is derived from existing sections (#331)Sebastian Thiel committed 4 years ago9157717
  22. refactor (#331)Sebastian Thiel committed 4 years agoa0d6caa