9 releases (breaking)

0.10.1 Jan 22, 2026
0.9.0 Nov 12, 2025
0.8.0 Mar 15, 2025
0.4.0 Oct 9, 2024
0.1.0 Aug 19, 2023

#44 in Embedded development

Download history 5975/week @ 2026-01-23 6513/week @ 2026-01-30 5300/week @ 2026-02-06 6015/week @ 2026-02-13 4845/week @ 2026-02-20 5930/week @ 2026-02-27 10052/week @ 2026-03-06 9110/week @ 2026-03-13 6115/week @ 2026-03-20 5666/week @ 2026-03-27 6336/week @ 2026-04-03 8781/week @ 2026-04-10 3621/week @ 2026-04-17 11498/week @ 2026-04-24 3871/week @ 2026-05-01 5456/week @ 2026-05-08

25,448 downloads per month
Used in 23 crates (4 directly)

MIT/Apache

190KB
4.5K SLoC

About

Build status Latest version Docs License

scm-record is a Rust library for a UI component to interactively select changes to include in a commit. It's meant to be embedded in source control tooling.

You can think of this as an interactive replacement for git add -p, or a reimplementation of hg crecord/hg commit -i. Given a set of changes made by the user, this component presents them to the user and lets them select which of those changes should be staged for commit.

The scm-record library is directly integrated into these projects:

  • git-branchless: the git record -i command lets you interactively select and commit changes.
  • Jujutsu: as the built-in diff editor; see the ui.diff-editor configuration option.

Standalone executable

scm-diff-editor is a standalone executable that uses scm-record as the front-end. It can be installed via cargo:

$ cargo install --locked scm-diff-editor

The scm-diff-editor executable can be used with these tools:

Future work

Feature wishlist

Here are some features in the UI which are not yet implemented:

Integration with other projects

Here's some projects that don't use scm-record, but could benefit from integration with it (with your contribution):

Dependencies

~13–20MB
~315K SLoC