table of contents
STG-EDIT(1) | StGit Manual | STG-EDIT(1) |
NAME¶
stg-edit - Edit a patch
SYNOPSIS¶
stg edit [OPTIONS] [patch]
DESCRIPTION¶
Edit a patch. Various aspects of a patch may be edited, including the message, author, patch name, or even the patch’s diff.
By default, the topmost patch is edited.
With no options or when --edit is specified, the patch details are edited interactively. Alternatively, command line options may be used to modify the patch non-interactively.
The --diff option causes the patch’s diff to be appended to the patch description when editing interactively. This diff may be edited interactively (or just used as a reference when editing the patch’s message). The StGit attempts to apply the modified diff to the patch’s parent tree. If the updated diff does not apply, no changes are made to the patch and the edited patch is saved to a file which may be corrected and then fed-back into stg edit --file.
OPTIONS¶
-e, --edit
-d, --diff
-m <message>, --message=<message>
-f <path>, --file=<path>
--no-verify
-s[=<value>], --signoff[=<value>]
The value is optional and defaults to the committer name and email. This option may be provided multiple times.
--ack[=<value>]
The value is optional and defaults to the committer’s name and email. This option may be provided multiple times.
--review[=<value>]
The value is optional and defaults to the committer’s name and email. This option may be provided multiple times.
--author=<name-and-email>
--authname=<name>
--authemail=<email>
--authdate=<date>
Use "now" to use the current time and date.
--committer-date-is-author-date
--save-template=<file>
When driving StGit from another program, it may be useful to first call a command with --save-template, then let the user edit the message, and then call the same command with --file.
-t <treeish>, --set-tree=<treeish>
STGIT¶
Part of the StGit suite - see stg(1)
09/20/2024 | StGit 2.4.12 |