commit
Create a commit in a repository
Creating Git commits
The most common case will be creating a commit in a Git repository. Usually, you
will include all changes in the working directory in the commit (that is, you
should run git diff to see what the changes are, and/or git diff --staged to
see what has already been staged). Generally, if your user wants you to commit
only a subset of the changes in the working directory, he will instruct you to
do so.
Creating Jujutsu commits
Less frequently, you will find yourself in a Jujutsu repository (which you can
determine via the presence of a .jj directory in the repository root). Jujutsu
does not have a concept of a staging area like Git, and running any jj command
will cause a snapshot of the working directory (including untracked files) to be
made; you should therefore interactively prompt your user to indicate which
changed files should be included in the change. In the most common case, you can