clan-cli: use intent-to-add for files under CLAN_NO_COMMIT #7657

Merged
DavHau merged 1 commits from push-yxrlrnqopwyl into main 2026-07-08 09:34:01 +00:00
Owner

When CLAN_NO_COMMIT is set, register files with git add --intent-to-add instead of fully staging them. The files still join git's tracked set so Nix flakes can see them, but their content is neither staged nor committed.
This is useful if you use jj and during secrets generation when CLAN_NO_COMMIT is set, so that nix sees the files.

Description of the change

Checklist

  • Ensured documentation is up to date
  • Added tests for all bug fixes and features
  • Doesn't affect backwards compatibility - or check the next points
    • Added the breaking change and migration details to docs/release-notes.md
    • !!! Review from another person is required BEFORE merge !!!

New major features

  • Added major features
    • All features are mentioned in docs/release-notes.md
    • All features are tested sufficiently via:
      • eval tests (for NixOS modules and nix functions)
      • python tests for python API and CLI code
      • VM or container tests for new clan services
When CLAN_NO_COMMIT is set, register files with `git add --intent-to-add` instead of fully staging them. The files still join git's tracked set so Nix flakes can see them, but their content is neither staged nor committed. This is useful if you use `jj` and during secrets generation when `CLAN_NO_COMMIT` is set, so that nix sees the files. ## Description of the change <!-- Brief summary of the change if not already clear from the title --> ## Checklist - [ ] Ensured documentation is up to date - [ ] Added tests for all bug fixes and features - [ ] Doesn't affect backwards compatibility - or check the next points - [ ] Added the breaking change and migration details to docs/release-notes.md - !!! Review from another person is required *BEFORE* merge !!! ## New major features - [ ] Added major features - [ ] All features are mentioned in docs/release-notes.md - [ ] All features are tested sufficiently via: - [ ] eval tests (for NixOS modules and nix functions) - [ ] python tests for python API and CLI code - [ ] VM or container tests for new clan services
pinpox added 1 commit 2026-06-24 11:11:56 +00:00
clan-cli: use intent-to-add for files under CLAN_NO_COMMIT
PR Size Review Check / pr-size-review-gate (pull_request) Successful in 33s
sizelint on each commit / sizelint (pull_request) Successful in 36s
label-pr / external (pull_request_target) Successful in 23s
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
gitea-mq/buildbot/nix-eval Build done.
gitea-mq/buildbot/nix-build Build done.
gitea-mq Merge queue passed
cf7d904390
When CLAN_NO_COMMIT is set, register files with `git add --intent-to-add` instead of fully staging them. The files still join git's tracked set so Nix flakes can see them, but their content is neither staged nor committed.
CODEOWNERS rules requested review from lassulus 2026-06-24 11:11:56 +00:00
CODEOWNERS rules requested review from Mic92 2026-06-24 11:11:56 +00:00
CODEOWNERS rules requested review from kenji 2026-06-24 11:11:56 +00:00
DavHau scheduled this pull request to auto merge when all checks succeed 2026-07-08 09:23:13 +00:00
DavHau merged commit 5963c8934a into main 2026-07-08 09:34:01 +00:00
DavHau deleted branch push-yxrlrnqopwyl 2026-07-08 09:34:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/clan-core#7657