github GitoxideLabs/gitoxide git-config-v0.7.0
git-config v0.7.0

2 years ago

Chore

  • uniformize deny attributes

New Features

  • File::set_raw_value_filter() to set values only in sections passing a filter.
  • File::section_mut_or_create_new_filter() to allow chosing which sections to add values to.
  • File::section_mut_or_create_new(…) to obtain an existing or new section for mutation.
  • use docsrs feature in code to show what is feature-gated automatically on docs.rs
  • pass --cfg docsrs when compiling for https://docs.rs

Bug Fixes

  • Properly handle boolean values such that a is true but a= is false.
    This is even consistent when no booleans are used, such that a has no
    value as if it is not present, it's only available for booleans which
    must be specified.
  • Keep track of a severe limitation and prepare tests for fixing it.
    This also changes behaviour, but merely removes a hack in Boolean
    which considered empty strings true, even though they are supposed to be
    false.

Changed (BREAKING)

  • Add File::set_raw_value() to unconditionally set single values, and make the value itself easier to provide.

New Features (BREAKING)

  • file::SectionMut::push() now supports values without key-value separator.
    These make a difference as those without = are considered boolean
    true.
    Currently pushing onto a section is the only way to write them.

Other (BREAKING)

  • File::set_raw_[multi_]value() to ::set_existing_raw_[multi_]value.
    This makes clear that the method will fail if the value doesn't yet
    exist.

Commit Statistics

  • 19 commits contributed to the release over the course of 3 calendar days.
  • 6 days passed between releases.
  • 11 commits where understood as conventional.
  • 1 unique issue was worked on: #450

Thanks Clippy

Clippy helped 1 time to make code idiomatic.

Commit Details

view details
  • #450
    • Properly handle boolean values such that a is true but a= is false. (08c50a4)
    • fix config tests on windows (7a871c2)
    • Keep track of a severe limitation and prepare tests for fixing it. (7c58516)
    • file::SectionMut::push() now supports values without key-value separator. (b6cd6ac)
    • refactor (5415449)
    • File::set_raw_value_filter() to set values only in sections passing a filter. (9937d0e)
    • File::section_mut_or_create_new_filter() to allow chosing which sections to add values to. (17455c9)
    • Add File::set_raw_value() to unconditionally set single values, and make the value itself easier to provide. (2b2357e)
    • File::section_mut_or_create_new(…) to obtain an existing or new section for mutation. (5902f54)
    • File::set_raw_[multi_]value() to ::set_existing_raw_[multi_]value. (69ec594)
  • Uncategorized
    • Release git-path v0.4.1 (5e82346)
    • Merge branch 'example-write-blob' (afedd7f)
    • Merge pull request #494 from ultrasaurus/patch-1 (86fe22c)
    • thanks clippy (2770431)
    • Merge branch 'main' into remote-ls-refs (95f2f4f)
    • Merge branch 'example-new-repo' (946dd3a)
    • use docsrs feature in code to show what is feature-gated automatically on docs.rs (b1c40b0)
    • uniformize deny attributes (f7f136d)
    • pass --cfg docsrs when compiling for https://docs.rs (5176771)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.