From: Michael Witten Date: Mon, 13 Apr 2009 18:23:49 GMT Subject: [PATCH RFC3 05/13] send-email: Cleanup the usage text and docs a bit Message-ID: <1239647037-15381-6-git-send-email-mfwitten@gmail.com> In-Reply-To: <1239647037-15381-5-git-send-email-mfwitten@gmail.com> All usage text lines should be < 80 characters. A port number in --smtp-server is no longer handled, so the suggestion has been removed. --chain-reply-to doesn't take an argument. The here-document quotation that defines the usage text is now a single-quote form, so that no interpolation takes place. Signed-off-by: Michael Witten --- Documentation/git-send-email.txt | 17 +++++++------ git-send-email.perl | 49 +++++++++++++++++++++----------------- 2 files changed, 36 insertions(+), 30 deletions(-) diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt index e8a385b..5f7d640 100644 --- a/Documentation/git-send-email.txt +++ b/Documentation/git-send-email.txt @@ -74,8 +74,9 @@ See the CONFIGURATION section for 'sendemail.multiedit'. the value GIT_COMMITTER_IDENT, as returned by "git var -l". The user will still be prompted to confirm this entry. ---in-reply-to=:: - Specify the contents of the first In-Reply-To header. +--in-reply-to=:: + Specify the contents of the first In-Reply-To header; + include the angle brackets '<' and '>'. Subsequent emails will refer to the previous email instead of this if --chain-reply-to is set (the default) Only necessary if --compose is also set. If --compose @@ -106,7 +107,7 @@ Sending the 'sendemail.envelopesender' configuration variable; if that is unspecified, choosing the envelope sender is left to your MTA. ---smtp-encryption=:: +--smtp-encryption=:: Specify the encryption to use, either 'ssl' or 'tls'. Any other value reverts to plain SMTP. Default is the value of 'sendemail.smtpencryption'. @@ -158,7 +159,7 @@ Automating Output of this command must be single email address per line. Default is the value of 'sendemail.cccmd' configuration value. ---[no-]chain-reply-to=:: +--[no-]chain-reply-to:: If this is set, each email will be sent as a reply to the previous email sent. If disabled with "--no-chain-reply-to", all emails after the first will be sent as replies to the first email sent. When using @@ -166,11 +167,11 @@ Automating entire patch series. Default is the value of the 'sendemail.chainreplyto' configuration value; if that is unspecified, default to --chain-reply-to. ---identity=:: +--identity=:: A configuration identity. When given, causes values in the - 'sendemail.' subsection to take precedence over + 'sendemail.' subsection to take precedence over values in the 'sendemail' section. The default identity is - the value of 'sendemail.identity'. + the value of the 'sendemail.identity' configuration variable. --[no-]signed-off-by-cc:: If this is set, add emails found in Signed-off-by: or Cc: lines to the @@ -214,7 +215,7 @@ specified, as well as 'body' if --no-signed-off-cc is specified. Administering ~~~~~~~~~~~~~ ---confirm=:: +--confirm=:: Confirm just before sending: + -- diff --git a/git-send-email.perl b/git-send-email.perl index 172b53c..5f01ad2 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -42,46 +42,51 @@ package main; sub usage { - print < Composing: - --from * Email From: - --to * Email To: - --cc * Email Cc: - --bcc * Email Bcc: - --subject * Email "Subject:" - --in-reply-to * Email "In-Reply-To:" - --annotate * Review each patch that will be sent in an editor. + --from
* Email From: + --to
* Email To: + --cc
* Email Cc: + --bcc
* Email Bcc: + --subject * Email "Subject:" + --in-reply-to * Email "In-Reply-To:"; include '<' and '>'. + --annotate * Review each patch that will be sent in + an editor. --compose * Open an editor for introduction. Sending: - --envelope-sender * Email envelope sender. - --smtp-server * Outgoing SMTP server to use. The port - is optional. Default 'localhost'. - --smtp-server-port * Outgoing SMTP server port. - --smtp-user * Username for SMTP-AUTH. - --smtp-pass * Password for SMTP-AUTH; not necessary. - --smtp-encryption * tls or ssl; anything else disables. + --envelope-sender
* Email envelope sender. + --smtp-server * Outgoing SMTP server. + --smtp-server-port * Outgoing SMTP server port; symbolic too. + --smtp-user * Username for SMTP-AUTH. + --smtp-pass [] * Password for SMTP-AUTH; not necessary. + --smtp-encryption * tls or ssl; anything else disables. --smtp-ssl * Deprecated. Use '--smtp-encryption ssl'. Automating: - --identity * Use the sendemail. options. - --cc-cmd * Email Cc: via ` \$patch_path` - --suppress-cc * author, self, sob, cc, cccmd, body, bodycc, all. - --[no-]signed-off-by-cc * Send to Signed-off-by: addresses. Default on. + --identity * Use the sendemail. options. + --cc-cmd * Email Cc: via ` $patch_path` + --suppress-cc * author, self, sob, cc, cccmd, body, + bodycc, all. + --[no-]signed-off-by-cc * Send to Signed-off-by: addresses. + Default on. --[no-]suppress-from * Send to self. Default off. --[no-]chain-reply-to * Chain In-Reply-To: fields. Default on. --[no-]thread * Use In-Reply-To: field. Default on. Administering: - --confirm * Confirm recipients before sending; + --confirm * Confirm recipients before sending; auto, cc, compose, always, or never. --quiet * Output one line of info per email. --dry-run * Don't actually send the emails. --[no-]validate * Perform patch sanity checks. Default on. - --[no-]format-patch * understand any non optional arguments as - `git format-patch` ones. + --[no-]format-patch * Understand any non-optional arguments as + `git format-patch' arguments. EOT exit(1); -- 1.6.2.2.479.g2aec