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

Re: [PATCH] git-svn.perl: Strip ChangeLog bits.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 4, 2008, 02:45 UTC
Message-ID
<7vabft5wh9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080804020931.GA4109@untitled>
Eric Wong <normalperson@yhbt.net> writes:
>> I could imagine that leaving git-svn alone and adding a hook to git-log
>> would be more useful, though.
>
> NACK on modifying git-svn to support more changelog formats.

Honestly, I am neutral about this one. I think it all depends on the motivation behind the desire to rewrite the log.

If the project that was hosted in Subversion wants to switch (perhaps gradually) to git, _and_ if the project also wants to adopt a workflow that does not do the GNU style changelog in the commit log but use a one-line summary friendly format, then sanitizing the commit log while importing via git-svn would make sense. Even though filter-branch after conversion would be another possibility, that option is only available if you are converting away from Subversion, never to return.

On the other extreme, if the Subversion side will always be the canonical one, _or_ if the project does not want to change its commit log format, then I think it makes perfect sense to limit the commit log munging to the absolute minimum (but even in such a case, the user can just run git-svn without activating the log munging option --- so I do not think it is such a big deal to add or reject an option like this).

> A better idea would be to write a generic script that takes "git log",
> "git svn log" or even plain "svn log" output and filters it
> independently.

That's an independent topic. If such a filter supports a feature like our shortlog command has, people whose history is still trapped in Subversion would benefit from it.

Previous: Eric WongNext: Jan Nieuwenhuizen
Message 10 of 14 in “git-svn.perl: Strip ChangeLog bits.”
  1. git-svn.perl: Strip ChangeLog bits.Jan Nieuwenhuizen, Aug 2, 2008
  2. Petr BaudisAug 2, 2008
  3. Junio C HamanoAug 2, 2008
  4. Jan NieuwenhuizenAug 2, 2008
  5. Junio C HamanoAug 2, 2008
  6. Jan NieuwenhuizenAug 3, 2008
  7. Junio C HamanoAug 3, 2008
  8. Jan NieuwenhuizenAug 4, 2008
  9. Eric WongAug 4, 2008
  10. Junio C HamanoAug 4, 2008
  11. Jan NieuwenhuizenAug 4, 2008
  12. Eric WongAug 4, 2008
  13. Jan NieuwenhuizenAug 4, 2008
  14. Jan NieuwenhuizenAug 2, 2008

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.