#git #scm #record

scm-record

UI component to interactively select changes to include in a commit

6 releases (breaking)

0.8.0 Mar 15, 2025
0.5.0 Jan 10, 2025
0.4.0 Oct 9, 2024
0.3.0 May 26, 2024
0.1.0 Aug 19, 2023

#212 in GUI

Download history 1601/week @ 2024-12-20 2139/week @ 2024-12-27 4635/week @ 2025-01-03 3907/week @ 2025-01-10 4136/week @ 2025-01-17 5249/week @ 2025-01-24 8186/week @ 2025-01-31 7260/week @ 2025-02-07 6042/week @ 2025-02-14 5144/week @ 2025-02-21 7621/week @ 2025-02-28 9576/week @ 2025-03-07 6053/week @ 2025-03-14 3372/week @ 2025-03-21 4969/week @ 2025-03-28 6269/week @ 2025-04-04

22,461 downloads per month
Used in 19 crates (4 directly)

MIT/Apache

185KB
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

~7–17MB
~243K SLoC