• Alex Dadgar's avatar
    Allow disabling of automatic trimming · 36facc10
    Alex Dadgar authored
    This PR exposes a config option that allows the disabling of the
    automatic trimming behavior. The motivation behind this option is to
    support things like:
    
    ```
    Version = 2
    Stable  = false
    Diff    =
    +/- Job: "example"
    +/- Task Group: "cache"
      +/- RestartPolicy {
        +/- Attempts: "9" => "10"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
          Task: "redis"
    
    Version = 1
    Stable  = false
    Diff    =
    +/- Job: "example"
    +/- Task Group: "cache"
      +/- RestartPolicy {
        +/- Attempts: "8" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
          Task: "redis"
    ```
    
    Without the option the output would be:
    ```
    Version = 2
    Stable  = false
    Diff    = +/- Job: "example"
    +/- Task Group: "cache"
      +/- RestartPolicy {
        +/- Attempts: "9" => "10"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
          Task: "redis"
    
    Version = 1
    Stable  = false
    Diff    = +/- Job: "example"
    +/- Task Group: "cache"
      +/- RestartPolicy {
        +/- Attempts: "8" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
          Task: "redis"
    ```
    
                                                                                                                                                                                                                                                                                                                                                        u
    36facc10