git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-send-email: Accept -n as a synonym for --dry-run

From
Alejandro R. Sedeño <asedeno@mit.edu>
Date
Dec 9, 2010, 04:44 UTC
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 <asedeno@mit.edu>
---
 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] <file | directory | rev-list options >
     --confirm               <str>  * 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
Next: Alejandro R. Sedeño
Message 1 of 9 in “git-send-email: Accept -n as a synonym for --dry-run”
  1. git-send-email: Accept -n as a synonym for --dry-runAlejandro R. Sedeño, Dec 9, 2010
  2. Alejandro R. SedeñoDec 9, 2010
  3. Thomas RastDec 9, 2010
  4. Alejandro R. SedeñoDec 9, 2010
  5. git-send-email: add some short options and update documentationAlejandro R. Sedeño, Dec 10, 2010
  6. Alejandro R. SedeñoDec 13, 2010
  7. Junio C HamanoDec 13, 2010
  8. 1/2 Add --force to git-send-email documentationAlejandro R. Sedeño, Dec 10, 2010
  9. 2/2 git-send-email: Add some short optionsAlejandro R. Sedeño, Dec 10, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.