1. 14 3月, 2015 1 次提交
  2. 08 1月, 2015 1 次提交
  3. 16 12月, 2014 1 次提交
  4. 26 11月, 2014 1 次提交
    • P
      git-send-email: add --transfer-encoding option · 8d814084
      Paolo Bonzini 提交于
      The thread at http://thread.gmane.org/gmane.comp.version-control.git/257392
      details problems when applying patches with "git am" in a repository with
      CRLF line endings.  In the example in the thread, the repository originated
      from "git-svn" so it is not possible to use core.eol and friends on it.
      
      Right now, the best option is to use "git am --keep-cr".  However, when
      a patch create new files, the patch application process will reject the
      new file because it finds a "/dev/null\r" string instead of "/dev/null".
      
      The problem is that SMTP transport is CRLF-unsafe.  Sending a patch by
      email is the same as passing it through "dos2unix | unix2dos".  The newly
      introduced CRLFs are normally transparent because git-am strips them. The
      keepcr=true setting preserves them, but it is mostly working by chance
      and it would be very problematic to have a "git am" workflow in a
      repository with mixed LF and CRLF line endings.
      
      The MIME solution to this is the quoted-printable transfer enconding.
      This is not something that we want to enable by default, since it makes
      received emails horrible to look at.  However, it is a very good match
      for projects that store CRLF line endings in the repository.
      
      The only disadvantage of quoted-printable is that quoted-printable
      patches fail to apply if the maintainer uses "git am --keep-cr".  This
      is because the decoded patch will have two carriage returns at the end
      of the line.  Therefore, add support for base64 transfer encoding too,
      which makes received emails downright impossible to look at outside
      a MUA, but really just works.
      
      The patch covers all bases, including users that still live in the late
      80s, by also providing a 7bit content transfer encoding that refuses
      to send emails with non-ASCII character in them.  And finally, "8bit"
      will add a Content-Transfer-Encoding header but otherwise do nothing.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8d814084
  5. 22 5月, 2014 1 次提交
  6. 30 4月, 2014 1 次提交
  7. 19 7月, 2013 1 次提交
    • R
      send-email: be explicit with SSL certificate verification · 35035bbf
      Ramkumar Ramachandra 提交于
      When initiating an SSL connection without explicitly specifying the
      SSL certificate verification mode, Net::SMTP::SSL defaults to no
      verification, but recent versions of the module gives a warning
      against this use of the default.
      
      Enable certificate verification by default, using /etc/ssl/certs as
      the default path for certificates of certificate authorities.  This
      path can be overriden by the --smtp-ssl-cert-path command line
      option and the sendemail.smtpSSLCertPath configuration variable.
      
      Passing an empty string as the path for CA certificates path disables
      the SSL certificate verification explicitly, which does not trigger
      the warning from recent versions of Net::SMTP::SSL.
      Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
      Helped-by: NBrian M. Carlson <sandals@crustytoothpaste.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      35035bbf
  8. 07 4月, 2013 1 次提交
  9. 28 2月, 2013 1 次提交
  10. 02 2月, 2013 1 次提交
  11. 10 10月, 2012 1 次提交
    • K
      git-send-email: introduce compose-encoding · 62e00690
      Krzysztof Mazur 提交于
      The introduction email (--compose option) have encoding hardcoded to
      UTF-8, but invoked editor may not use UTF-8 encoding.
      The encoding used by patches can be changed by the "8bit-encoding"
      option, but this option does not have effect on introduction email
      and equivalent for introduction email is missing.
      
      Added compose-encoding command line option and sendemail.composeencoding
      configuration option specify encoding of introduction email.
      Signed-off-by: NKrzysztof Mazur <krzysiek@podlesie.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      62e00690
  12. 28 2月, 2012 1 次提交
  13. 07 7月, 2011 1 次提交
    • M
      Documentation: use [verse] for SYNOPSIS sections · 7791a1d9
      Martin von Zweigbergk 提交于
      The SYNOPSIS sections of most commands that span several lines already
      use [verse] to retain line breaks. Most commands that don't span
      several lines seem not to use [verse]. In the HTML output, [verse]
      does not only preserve line breaks, but also makes the section
      indented, which causes a slight inconsistency between commands that
      use [verse] and those that don't. Use [verse] in all SYNOPSIS sections
      for consistency.
      
      Also remove the blank lines from git-fetch.txt and git-rebase.txt to
      align with the other man pages. In the case of git-rebase.txt, which
      already uses [verse], the blank line makes the [verse] not apply to
      the last line, so removing the blank line also makes the formatting
      within the document more consistent.
      
      While at it, add single quotes to 'git cvsimport' for consistency with
      other commands.
      Signed-off-by: NMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7791a1d9
  14. 16 4月, 2011 1 次提交
  15. 11 3月, 2011 1 次提交
    • J
      doc: drop author/documentation sections from most pages · 48bb914e
      Jeff King 提交于
      The point of these sections is generally to:
      
        1. Give credit where it is due.
      
        2. Give the reader an idea of where to ask questions or
           file bug reports.
      
      But they don't do a good job of either case. For (1), they
      are out of date and incomplete. A much more accurate answer
      can be gotten through shortlog or blame.  For (2), the
      correct contact point is generally git@vger, and even if you
      wanted to cc the contact point, the out-of-date and
      incomplete fields mean you're likely sending to somebody
      useless.
      
      So let's drop the fields entirely from all manpages except
      git(1) itself. We already point people to the mailing list
      for bug reports there, and we can update the Authors section
      to give credit to the major contributors and point to
      shortlog and blame for more information.
      
      Each page has a "This is part of git" footer, so people can
      follow that to the main git manpage.
      48bb914e
  16. 11 12月, 2010 1 次提交
  17. 13 11月, 2010 1 次提交
    • A
      git-send-email.perl: make initial In-Reply-To apply only to first email · db54c8e7
      Antonio Ospite 提交于
      When an initial --in-reply-to is supplied, make it apply only to the
      first message; --[no-]chain-reply-to setting are honored by second and
      subsequent messages; this is also how the git-format-patch option with
      the same name behaves.
      
      Moreover, when $initial_reply_to is asked to the user interactively it
      is asked as the "Message-ID to be used as In-Reply-To for the _first_
      email", this makes the user think that the second and subsequent
      patches are not using it but are considered as replies to the first
      message or chained according to the --[no-]chain-reply setting.
      
      Look at the v2 series in the illustration to see what the new behavior
      ensures:
      
             (before the patch)          |      (after the patch)
       [PATCH 0/2] Here is what I did... | [PATCH 0/2] Here is what I did...
         [PATCH 1/2] Clean up and tests  |   [PATCH 1/2] Clean up and tests
         [PATCH 2/2] Implementation      |   [PATCH 2/2] Implementation
         [PATCH v2 0/3] Here is a reroll |   [PATCH v2 0/3] Here is a reroll
         [PATCH v2 1/3] Clean up         |     [PATCH v2 1/3] Clean up
         [PATCH v2 2/3] New tests        |     [PATCH v2 2/3] New tests
         [PATCH v2 3/3] Implementation   |     [PATCH v2 3/3] Implementation
      
      This is the typical behaviour we want when we send a series with cover
      letter in reply to some discussion, the new patch series should appear
      as a separate subtree in the discussion.
      
      Also update the documentation on --in-reply-to to describe the new
      behavior.
      Signed-off-by: NAntonio Ospite <ospite@studenti.unina.it>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      db54c8e7
  18. 28 9月, 2010 1 次提交
  19. 07 9月, 2010 1 次提交
  20. 18 6月, 2010 1 次提交
  21. 05 5月, 2010 1 次提交
  22. 11 4月, 2010 2 次提交
  23. 28 11月, 2009 1 次提交
  24. 14 11月, 2009 1 次提交
  25. 23 8月, 2009 1 次提交
    • J
      send-email: make --no-chain-reply-to the default · 41fe87fa
      Junio C Hamano 提交于
      In http://article.gmane.org/gmane.comp.version-control.git/109790 I
      threatened to announce a change to the default threading style used by
      send-email to no-chain-reply-to (i.e. the second and subsequent messages
      will all be replies to the first one), unless nobody objected, in 1.6.3.
      
      Nobody objected, as far as I can dig the list archive.  But when nothing
      happened in 1.6.3 nor 1.6.4, nobody from the camp who complained loudly
      that led to the message did not complain either.
      
      So I am guessing that after all nobody cares about this.  But 1.7.0 is a
      good time to change this, and as I said in the message, I personally think
      it is a good change, so here it is.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      41fe87fa
  26. 01 8月, 2009 1 次提交
    • W
      Documentation: git-send-email: correct statement about standard ports · 2da846e7
      Wesley J. Landaker 提交于
      The current documentation states that servers typically listen on port
      465 and calls this "ssmtp". While it's true that many mail servers use
      port 465 for SSL smtp, this is non-standard, and hails from the days
      before smtp and submission TLS support, that arrived in RFC2487 and
      RFC3207. Port 465 is actually assigned by IANA for unrelated purposes,
      and is mostly still used by mail servers today only to support Outlook
      Express.
      
      In any case, this patch helps the documentation better reflect both
      standards and reality, while still helpfully mentioning ports numbers
      that a user may wish to specify.
      Signed-off-by: NWesley J. Landaker <wjl@icecavern.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2da846e7
  27. 31 7月, 2009 1 次提交
  28. 23 7月, 2009 1 次提交
  29. 19 6月, 2009 1 次提交
    • P
      Test cccmd in t9001-send-email.sh and fix some bugs · cb8a9bd5
      Paolo Bonzini 提交于
      For another patch series I'm working on I needed some tests
      for the cc-cmd feature of git-send-email.
      
      This patch adds 3 tests for the feature and for the possibility
      to specify --suppress-cc multiple times, and fixes two bugs.
      The first bug is that the --suppress-cc option for `cccmd' was
      misspelled as `ccmd' in the code.  The second bug, which is
      actually found only with my other series, is that the argument
      to the cccmd is never quoted, so the cccmd would fail with
      patch file names containing a space.
      
      A third bug I fix (in the docs) is that the bodycc argument was
      actually spelled ccbody in the documentation and bash completion.
      Signed-off-by: NPaolo Bonzini <bonzini@gnu.org>
      Cc: Markus Heidelberg <markus.heidelberg@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cb8a9bd5
  30. 13 6月, 2009 1 次提交
  31. 12 6月, 2009 1 次提交
  32. 14 5月, 2009 1 次提交
    • T
      send-email: Add config option for sender address · 09caa24f
      Trent Piepho 提交于
      The sender address, as specified with the '--from' command line option,
      couldn't be set in the config file.  So add a new config option,
      'sendemail.from', which sets it.  One can use 'sendemail.<identity>.from'
      as well of course, which is likely the more useful case.
      
      The sender address would default to GIT_AUTHOR_IDENT, which is usually the
      right thing, but this doesn't allow switching based on the identity
      selected.  It's possible to switch the SMTP server and envelope sender by
      using the '--identity' option, in which case one probably wants to use a
      different from address as well, but this had to be manually specified.
      
      The documentation for 'from' is also corrected somewhat.  If '--from' is
      specified (or the new sendemail.from option is used) then the user isn't
      prompted.  The default with no '--from' option (or sendemail.from option)
      is GIT_AUTHOR_IDENT first then GIT_COMMITTER_IDENT, not just
      GIT_COMMITTER_IDENT.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      09caa24f
  33. 23 4月, 2009 1 次提交
  34. 14 4月, 2009 3 次提交
  35. 08 4月, 2009 1 次提交
  36. 18 3月, 2009 1 次提交
  37. 03 3月, 2009 1 次提交
    • J
      send-email: add --confirm option and configuration setting · c1f2aa45
      Jay Soffian 提交于
      send-email violates the principle of least surprise by automatically
      cc'ing additional recipients without confirming this with the user.
      
      This patch teaches send-email a --confirm option. It takes the
      following values:
      
       --confirm=always   always confirm before sending
       --confirm=never    never confirm before sending
       --confirm=cc       confirm before sending when send-email has
                          automatically added addresses from the patch to
                          the Cc list
       --confirm=compose  confirm before sending the first message when
                          using --compose. (Needed to maintain backwards
                          compatibility with existing behavior.)
       --confirm=auto     'cc' + 'compose'
      
      If sendemail.confirm is unconfigured, the option defaults to 'compose'
      if any suppress-Cc related options have been used, otherwise it defaults
      to 'auto'.
      
      Unfortunately, it is impossible to introduce this patch such that it
      helps new users without potentially annoying some existing users. We
      attempt to mitigate the latter by:
      
       * Allowing the user to set 'git config sendemail.confirm never'
       * Allowing the user to say 'all' after the first prompt to not be
         prompted on remaining emails during the same invocation.
       * Telling the user about the 'sendemail.confirm' setting if it is
         unconfigured whenever we prompt due to Cc before sending.
       * Only prompting if no --suppress related options have been passed, as
         using such an option is likely to indicate an experienced send-email
         user.
      
      There is a slight fib in message informing the user of the
      sendemail.confirm setting and this is intentional. Setting 'auto'
      differs from leaving sendemail.confirm unset in two ways: 1) 'auto'
      obviously squelches the informational message; 2) 'auto' prompts when
      the Cc list has been expanded even in the presence of a --suppress
      related option, where leaving sendemail.confirm unset does not. This is
      intentional to keep the message simple, and to avoid adding another
      sendemail.confirm value ('auto-except-suppress'?).
      Signed-off-by: NJay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c1f2aa45