Skip to content

Remove locks from but status subcommand#13043

Merged
krlvi merged 2 commits intomasterfrom
remove-hunk-locks
Mar 26, 2026
Merged

Remove locks from but status subcommand#13043
krlvi merged 2 commits intomasterfrom
remove-hunk-locks

Conversation

@krlvi
Copy link
Member

@krlvi krlvi commented Mar 26, 2026

It was confusing agents and humans

Copilot AI review requested due to automatic review settings March 26, 2026 00:27
@vercel
Copy link

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Mar 26, 2026 2:23am

Request Review

@github-actions github-actions bot added rust Pull requests that update Rust code CLI The command-line program `but` labels Mar 26, 2026
@krlvi krlvi force-pushed the remove-hunk-locks branch from 73b6e7d to a6e3381 Compare March 26, 2026 00:28
Copy link
Contributor

Copilot AI left a comment

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 removes the notion of “locks” from the but status CLI output and related data plumbing so agents/users aren’t presented with lock indicators, while updating absorb planning to derive dependency locks from computed hunk dependencies instead of per-assignment fields.

Changes:

  • Removed lock rendering (🔒 + commit list) from the legacy but status assignments output.
  • Removed lock fields from hunk assignment/test fixtures and simplified reconciliation now that locks aren’t carried on assignments.
  • Updated absorb planning to compute and consult HunkDependencies for lock-based absorption targeting.

Reviewed changes

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

Show a summary per file
File Description
crates/but/src/command/legacy/status/mod.rs Removes lock collection/formatting and the lock indicator from status output.
crates/but-hunk-assignment/src/lib.rs Removes hunk_locks from HunkAssignment and updates constructors/tests accordingly.
crates/but-hunk-assignment/src/reconcile.rs Stops copying/preserving locks during reconciliation since assignments no longer carry them.
crates/but-api/src/legacy/absorb.rs Switches lock-based absorption logic to look up locks via computed HunkDependencies.
crates/but-tools/src/workspace.rs Removes dependency_locks from RichHunk and stops populating it.
crates/but/src/id/tests.rs Updates test fixtures for HunkAssignment by removing hunk_locks.
crates/but/src/command/legacy/rub/mod.rs Updates test fixture(s) to remove hunk_locks.
crates/but/src/command/legacy/commit.rs Updates test fixture(s) to remove hunk_locks.
crates/but/src/command/commit/move.rs Updates test fixture(s) to remove hunk_locks.

@krlvi krlvi force-pushed the remove-hunk-locks branch 2 times, most recently from 4d7f01f to ce2cb14 Compare March 26, 2026 00:52
Copilot AI review requested due to automatic review settings March 26, 2026 00:55
@krlvi krlvi force-pushed the remove-hunk-locks branch from ce2cb14 to 3735796 Compare March 26, 2026 00:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

@krlvi krlvi force-pushed the remove-hunk-locks branch from 3735796 to 227ca8a Compare March 26, 2026 01:01
Copilot AI review requested due to automatic review settings March 26, 2026 01:04
@krlvi krlvi force-pushed the remove-hunk-locks branch from 227ca8a to 30e664b Compare March 26, 2026 01:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

@krlvi krlvi force-pushed the remove-hunk-locks branch 2 times, most recently from 87e0b6a to ae0e8b3 Compare March 26, 2026 01:54
Copilot AI review requested due to automatic review settings March 26, 2026 01:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

@krlvi krlvi force-pushed the remove-hunk-locks branch from ae0e8b3 to 5cf8d0b Compare March 26, 2026 02:23
@krlvi krlvi merged commit 8302685 into master Mar 26, 2026
70 of 72 checks passed
@krlvi krlvi deleted the remove-hunk-locks branch March 26, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants