From: Alejandro R. Sedeño Date: Thu, 09 Dec 2010 04:44:38 GMT Subject: [PATCH] git-send-email: Accept -n as a synonym for --dry-run Message-ID: <1291869878-19645-1-git-send-email-asedeno@mit.edu> git-send-email is not currently using -n for anything else, and it seems unlikely we will want to use it to mean anything else in the future, so add it as an alias for convenience. Signed-off-by: Alejandro R. Sedeño --- git-send-email.perl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index 76565de..7e3df9a 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -85,7 +85,7 @@ git send-email [options] --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. + -n, --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. @@ -304,7 +304,7 @@ my $rc = GetOptions("sender|from=s" => \$sender, "suppress-cc=s" => \@suppress_cc, "signed-off-cc|signed-off-by-cc!" => \$signed_off_by_cc, "confirm=s" => \$confirm, - "dry-run" => \$dry_run, + "dry-run|n" => \$dry_run, "envelope-sender=s" => \$envelope_sender, "thread!" => \$thread, "validate!" => \$validate, -- 1.7.3.3