amend | am
meld pending changes into the current commit
Replace your current commit with a new commit that contains the contents of the original commit, plus any pending changes.
By default, all pending changes (in other words, those reported by
sl status) are committed. To commit only some of your
changes, you can:
Specify an exact list of files for which you want changes committed.
-Xflags to match file names to exclude or include using patterns or filesets. See
sl help patternsand
sl help filesets.
--interactiveflag to open a UI where you can select individual hunks for inclusion.
sl amend reuses your existing commit message and does not
prompt you for changes. To change your commit message, you can:
--edit/-eto open your configured editor to update the existing commit message.
--message/-mto replace the entire commit message, including any commit template fields, with a string that you specify.
-m overwrites all information in the commit message,
including information specified as part of a pre-loaded commit
template. For example, any information associating this commit with
a code review system will be lost and might result in breakages.
When you amend a commit that has descendants, those descendants are
rebased on top of the amended version of the commit, unless doing so
would result in merge conflicts. If this happens, run
to manually trigger the rebase so that you can go through the merge
conflict resolution process. Alternatively:
--rebaseto always trigger the rebase and resolve merge conflicts.
--no-rebaseto prevent the automatic rebasing of descendants.
|mark new/missing files as added/removed before committing|
|prompt to edit the commit message|
|use interactive mode|
|rebases children after the amend|
|display with template|
|include files matching the given patterns|
|exclude files matching the given patterns|
|use text as commit message|
|read commit message from file|
|record the specified date as commit date|
|record the specified user as committer|
|disable automatic file move detection|
|incorporate corrections into stack. see 'sl help absorb' for details|