Skip to content

[1.4-maint] json: support BORG_JSON_INDENT env var for JSON output formatting#9861

Merged
ThomasWaldmann merged 8 commits into
borgbackup:1.4-maintfrom
charmikadi:backport-json-indent-1.4-maint
Jul 6, 2026
Merged

[1.4-maint] json: support BORG_JSON_INDENT env var for JSON output formatting#9861
ThomasWaldmann merged 8 commits into
borgbackup:1.4-maintfrom
charmikadi:backport-json-indent-1.4-maint

Conversation

@charmikadi

Copy link
Copy Markdown
Contributor

Description

Backport of #9855 to the 1.4-maint branch

Adds support for BORG_JSON_INDENT env var, allowing users to control JSON output indentation (including compact single-line output) for easier parsing by log collectors.

Checklist

  • PR is against master (or maintenance branch if only applicable there)
  • New code has tests and docs where appropriate
  • Tests pass (run tox or the relevant test subset)
  • Commit messages are clean and reference related issues

@charmikadi
charmikadi marked this pull request as draft July 5, 2026 15:49
@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.17%. Comparing base (e3f7eb7) to head (c3accf2).
⚠️ Report is 3 commits behind head on 1.4-maint.

Additional details and impacted files
@@              Coverage Diff              @@
##           1.4-maint    #9861      +/-   ##
=============================================
+ Coverage      82.04%   82.17%   +0.13%     
=============================================
  Files             38       38              
  Lines          11383    11396      +13     
  Branches        1794     1797       +3     
=============================================
+ Hits            9339     9365      +26     
+ Misses          1461     1449      -12     
+ Partials         583      582       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@charmikadi
charmikadi marked this pull request as ready for review July 6, 2026 00:27
@ThomasWaldmann
ThomasWaldmann merged commit 0ee07f0 into borgbackup:1.4-maint Jul 6, 2026
19 of 22 checks passed
@ThomasWaldmann

Copy link
Copy Markdown
Member

Thanks @charmikadi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants