u/Choice_Ad2220

New way track and group working tree changes in Git

New way track and group working tree changes in Git

New Git change-storage architecture: 3 snapshots, constraints, and smarter merging

Most Git tools represent changes as patches to replay later: a recipe of operations to perform.

This new architecture instead stores each logical change using three snapshots:

  1. the original file state
  2. the file after edits were made
  3. the version containing only the selected change

and stores rules for what lines/content should be present or absent: a set of constraints to illustrate the change.

When reapplying changes later, it doesn’t blindly replay a patch. It uses structural alignment of the file plus those rules to reconstruct the intended result. It finds stable unique anchor points in the code to match up where changes should be applied. In practice, that means repeated apply operations are idempotent, duplicate-line corruption is less likely, and it can behave better than a traditional 3-way merge on messy in-progress work.

Because changes are stored independently of the current diff, it can also survive continued edits to the working tree and be reconciled later.

github.com
u/Choice_Ad2220 — 3 days ago

New git staging tool - git-stage-batch

git-stage-batch adds named deferred change sets (“batches”), multi-pass staging, and finer-grained patch selection on top of the usual hunk workflow. I built it because git add -p and rebase alone weren’t enough for large refactors. The stateful CLI is especially useful for autonomous and scripted workflows to stage commits from a dirty working tree, but there's a tui, too.

I'm interested in feedback from people who obsess over commit hygiene.

https://halfline.github.io/git-stage-batch/

reddit.com
u/Choice_Ad2220 — 3 days ago
▲ 0 r/git

New git staging tool - git-stage-batch

git-stage-batch adds named deferred change sets (“batches”), multi-pass staging, and finer-grained patch selection on top of the usual hunk workflow. I built it because git add -p and rebase alone weren’t enough for large refactors. The stateful CLI is especially useful for autonomous and scripted workflows to stage commits from a dirty working tree, but there's a tui, too.

I'm interested in feedback from people who obsess over commit hygiene.

https://halfline.github.io/git-stage-batch/

reddit.com
u/Choice_Ad2220 — 3 days ago