# amend

Contents

- Description
- Commands
  - Change creation

provide the amend command (EXPERIMENTAL)

# Description

This extension provides an `amend` command that is similar to `commit --amend` but does not prompt an editor.

# Commands

## Change creation

### amend

amend the working copy parent with all or specified outstanding changes:

    hg amend [OPTION]... [FILE]...

Similar to `hg commit --amend`, but reuse the commit message without invoking editor, unless `--edit` was set.

See `hg help commit` for more details.

Options:

`-A, --addremove`
| mark new/missing files as added/removed before committing
`-e, --edit` | invoke editor on commit messages
`-i, --interactive`
| use interactive mode
`--close-branch` | mark a branch as closed, hiding it from the branch list
`-s, --secret` | use the secret phase for committing
`--draft` | use the draft phase for committing
`-n, --note <VALUE>`
| store a note on the amend
`-I, --include <PATTERN[+]>`
| include names matching the given patterns
`-X, --exclude <PATTERN[+]>`
| exclude names matching the given patterns
`-m, --message <TEXT>`
| use text as commit message
`-l, --logfile <FILE>`
| read commit message from file
`-d, --date <DATE>`
| record the specified date as commit date
`-u, --user <USER>`
| record the specified user as committer
`-D, --currentdate`
| record the current date as commit date
`-U, --currentuser`
| record the current user as committer

[+] marked option can be specified multiple times