Skip to content

fix diff order - #48

Merged
vic merged 1 commit into
mainfrom
diff
Nov 21, 2025
Merged

vic merged 1 commit into
mainfrom
diff

Conversation

@vic

@vic vic commented Nov 21, 2025

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings November 21, 2025 05:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the argument order in diff -u commands used by check hooks to ensure the diff output shows changes in the semantically correct direction: from the current (old) file to the expected (new) file. This makes the diff output more intuitive when validation checks fail, as it shows what changes need to be applied to bring files up to date.

Key changes:

  • Corrected diff -u argument order in flake.nix validation check
  • Corrected diff -u argument order in flake.lock pruning validation check

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/write-flake.nix Fixed diff order to compare current flake.nix (old) against formatted version (new)
modules/options/prune-lock.nix Fixed diff order to compare current flake.lock (old) against pruned version (new)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vic
vic merged commit f25d0c1 into main Nov 21, 2025
@vic
vic deleted the diff branch November 21, 2025 05:09
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