Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app/db-diff: Add --format=json output #1844

Closed
wants to merge 4 commits into from

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented May 23, 2019

Add a new "json" output format. The "diff" format is also a mostly
machine-compatible one. But JSON is much more ubiquitous and easier to
consume.

jlebon added 4 commits May 23, 2019 14:08
Add a new "json" output format. The "diff" format is also a mostly
machine-compatible one. But JSON is much more ubiquitous and easier to
consume.
Some argument names were wrong, others missing.
And avoid more costly operations.
The `old` and `new` naming is odd. It implies a temporal relationship
between the two commits. Just rename those to the more apt "from" and
"to".

The difference is mostly cosmetic, but I didn't want to inherit this in
the new JSON interface. It does technically breaks the `diff` output
which is a somewhat machine-compatible interface, though the "ostree
diff commit" headers have been pretty freeform anyway, so I doubt anyone
is actually trying to read those.
@cgwalters
Copy link
Member

@rh-atomic-bot r+ 12ea39b

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

rh-atomic-bot pushed a commit that referenced this pull request May 23, 2019
Some argument names were wrong, others missing.

Closes: #1844
Approved by: cgwalters
rh-atomic-bot pushed a commit that referenced this pull request May 23, 2019
And avoid more costly operations.

Closes: #1844
Approved by: cgwalters
rh-atomic-bot pushed a commit that referenced this pull request May 23, 2019
The `old` and `new` naming is odd. It implies a temporal relationship
between the two commits. Just rename those to the more apt "from" and
"to".

The difference is mostly cosmetic, but I didn't want to inherit this in
the new JSON interface. It does technically breaks the `diff` output
which is a somewhat machine-compatible interface, though the "ostree
diff commit" headers have been pretty freeform anyway, so I doubt anyone
is actually trying to read those.

Closes: #1844
Approved by: cgwalters
@jlebon jlebon deleted the pr/no-parent-diff branch April 23, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants