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

Re: [PATCH/RFC] git svn: don't introduce new paragraph for git-svn-id

From
EWEric Wong <normalperson@yhbt.net>
Date
Aug 21, 2012, 21:45 UTC
Message-ID
<20120821214538.GA4879@dcvr.yhbt.net>
In-Reply-To
<50315ED1.6080803@debian.org>
Robert Luberda <robert@debian.org> wrote:
> I have been quite a busy recently, so it took me longer that I thought.
No worries, thanks for following up.
Show 5 quoted lines
> It was quite hard for me to think some sensible option name, and finally
> have chosen --trim-svn-log (svn.trimsvnlog as config key name). Please
> let me know if such name is ok for you. If not, I'll try to find a
> different one (but as I wrote I'm not really good at giving names to
> options/functions/variables, etc. :()

I think having "svn" in "svn.trimsvnlog" twice is redundant and not ideal. Perhaps just --trim-log and svn.trimlog?

Show 6 quoted lines
> I considered making the option a default one for new git svn clones, so
> that existing repositories would use the older approach, but I gave up
> the idea, and implemented the simpler solution, in which the option must
> be given explicitly if one needs the new behavior. If making it a
> default for new clones would make sense for you, I can try to implement
> this as well.
Default behavior should not change, especially not without warning.
> For consistency, the `--add-author-from' option was modified not to add
> an extra new line before 'From: ' line when the newly introduced option
> is in effect.
OK.
Show 7 quoted lines
> I'm sending a new patch in next e-mail, could you please look at it and
> share any comments you might have? One thing I was not sure about is the
> requirement, introduced in the change, of having a whitespace character
> after a colon in pseudo-header lines
> (e.g. `From:somebody <somebody@somewhere.com>' won't be considered as a
> pseudo-header) - is this consistent with a way git handles
> headers/pseudo-headers?

Both git-send-email and git-am check for space after these headers, so git-svn should, too

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 13 in “git svn: don't introduce new paragraph for git-svn-id”
  1. git svn: don't introduce new paragraph for git-svn-idRobert Luberda, Aug 1, 2012
  2. Eric WongAug 1, 2012
  3. Robert LuberdaAug 1, 2012
  4. Eric WongAug 1, 2012
  5. Robert LuberdaAug 19, 2012
  6. git svn: optionally trim imported log messagesRobert Luberda, Aug 19, 2012
  7. Junio C HamanoAug 19, 2012
  8. Robert LuberdaAug 24, 2012
  9. Junio C HamanoAug 24, 2012
  10. Eric WongAug 21, 2012
  11. Junio C HamanoAug 21, 2012
  12. Robert LuberdaAug 24, 2012
  13. Eric WongAug 26, 2012

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.