Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • master default
  • 7.0.0.202409031743-jpms
  • 7.0.0-jpms-1
4 results

jgit

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Shawn Pearce authored
    Config was confusing the following two variables when writing the
    file back to text format:
    
      [my]
        empty =
        enabled
    
    When parsed, we say that my.empty has 1 value, null, and my.enabled
    is an empty string value that in boolean context should be evaluated
    as true.
    
    Saving this configuration file back to text format was ignoring the
    null value for my.empty, producing a completely different file than
    what Config read:
    
      [my]
        empty
        enabled
    
    Instead handle the writing differently to ensure the original format
    is output.  New tests cases cover the expected behavior and return
    values from accessor methods.
    
    Change-Id: Id37379ce20cb27e3330923cf989444dd9f2bdd96
    Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
    869c8434
    History
    Name Last commit Last update