git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Avery Pennarun" <apenwarr@gmail.com>
To: "Andreas Ericsson" <ae@op5.se>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH 1/2] git-svn: don't append extra newlines at the end of commit messages.
Date: Fri, 13 Jun 2008 12:23:46 -0400	[thread overview]
Message-ID: <32541b130806130923x4c66f6ddybaaa5d7b00f6dead@mail.gmail.com> (raw)
In-Reply-To: <48522055.6060006@op5.se>

On 6/13/08, Andreas Ericsson <ae@op5.se> wrote:
>  I'm not familiar with git-svn, and my perl is pretty weak as it is.
>  Are you proposing to remove extra whitespace from git commits when they are
>  sent back to svn via dcommit? If so, wouldn't it be better to always strip
>  extra newlines when importing from svn so they're never there in the first
>  place?

I thought of doing it that way (in fact, I *did* do it that way the
first time).  But I figured it would be too bad if you couldn't always
reconstruct the precise svn commit message from the git commit
message.  Currently you can, even though you sometimes have to remove
multiple newlines.  Interestingly, the addition of the git-svn-id:
line seems to be the only reason the commit messages aren't corrupted,
since git normally trims whitespace from the end of its own commits.

So for the record, whether the sha1's would be affected after my patch
didn't even occur to me.  But it's very convenient that they're not.

Avery

      parent reply	other threads:[~2008-06-13 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 23:10 [PATCH 1/2] git-svn: don't append extra newlines at the end of commit messages Avery Pennarun
2008-06-12 23:10 ` [PATCH 2/2] git-svn: test that extra blank lines aren't inserted in " Avery Pennarun
2008-06-13  5:41 ` [PATCH 1/2] git-svn: don't append extra newlines at the end of " Junio C Hamano
2008-06-13  6:29   ` Karl Hasselström
2008-06-13 16:17   ` Avery Pennarun
2008-06-13  7:23 ` Andreas Ericsson
2008-06-13  8:09   ` Karl Hasselström
2008-06-14  8:43     ` Karl Hasselström
2008-06-13 16:23   ` Avery Pennarun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32541b130806130923x4c66f6ddybaaa5d7b00f6dead@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=ae@op5.se \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).