'\" t
.\" Title: stg-new
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1
.\" Date: 03/26/2014
.\" Manual: StGit Manual
.\" Source: StGit
.\" Language: English
.\"
.TH "STG\-NEW" "1" "03/26/2014" "StGit" "StGit Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
stg-new \- Create a new, empty patch
.SH "SYNOPSIS"
.sp
.nf
\fIstg\fR new [options] [\-\-] []
.fi
.SH "DESCRIPTION"
Create a new, empty patch on the current stack\&. The new patch is created on top of the currently applied patches, and is made the new top of the stack\&. Uncommitted changes in the work tree are not included in the patch \(em that is handled by \fBstg-refresh\fR(1)\&.
The given name must be unique in the stack, and may only contain alphanumeric characters, dashes and underscores\&. If no name is given, one is generated from the first line of the patch\(cqs commit message\&.
An editor will be launched to edit the commit message to be used for the patch, unless the \fI\-\-message\fR flag already specified one\&. The \fIpatchdescr\&.tmpl\fR template file (if available) is used to pre\-fill the editor\&.
.SH "OPTIONS"
.PP
\-\-author "NAME "
.RS 4
Set the author details\&.
.RE
.PP
\-\-authname NAME
.RS 4
Set the author name\&.
.RE
.PP
\-\-authemail EMAIL
.RS 4
Set the author email\&.
.RE
.PP
\-\-authdate DATE
.RS 4
Set the author date\&.
.RE
.PP
\-m MESSAGE, \-\-message MESSAGE
.RS 4
Use MESSAGE instead of invoking the editor\&.
.RE
.PP
\-f FILE, \-\-file FILE
.RS 4
Use the contents of FILE instead of invoking the editor\&. (If FILE is "\-", write to stdout\&.)
.RE
.PP
\-\-save\-template FILE
.RS 4
Instead of running the command, just write the message template to FILE, and exit\&. (If FILE is "\-", write to stdout\&.)
When driving StGit from another program, it is often useful to first call a command with \fI\-\-save\-template\fR, then let the user edit the message, and then call the same command with \fI\-\-file\fR\&.
.RE
.PP
\-\-sign
.RS 4
Add a "Signed\-off\-by:" to the end of the patch\&.
.RE
.PP
\-\-ack
.RS 4
Add an "Acked\-by:" line to the end of the patch\&.
.RE
.SH "STGIT"
Part of the StGit suite \- see \fBstg\fR(1)