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

Re: CVS to git: parsing ChangeLog entries?

From
Jeff King <peff@peff.net>
Date
Mar 13, 2008, 17:03 UTC
Message-ID
<20080313170322.GA3580@sigill.intra.peff.net>
In-Reply-To
<20080312190827.GE3198@ins.uni-bonn.de>
On Wed, Mar 12, 2008 at 08:08:27PM +0100, Ralf Wildenhues wrote:
Show 5 quoted lines
> when migrating a project that uses GNU-style ChangeLogs from CVS
> to git, is it possible to extract patch author information from
> the ChangeLog entries rather than from the CVS commit logs?
> For simplicity let's first assume the project used only one
> ChangeLog file.

I don't think there is a way to do this automatically with git-cvsimport. However, once imported, I think you could rewrite history using git-filter-branch with a filter that looked at the diff of ChangeLog for that commit and rewrote the author. See the documentation for git-filter-branch.

> Related question: when CVS commit logs have varying encoding,
> say, some latin1 and some UTF-8, is it possible to have uniformly
> encoded git log entries?

I don't think git-cvsimport does much with encodings at all. But again, you could probably go back through the imported repo with git-filter-branch and iconv the commit messages as appropriate.

-Peff
Previous: Ralf WildenhuesNext: Ralf Wildenhues
Message 2 of 4 in “CVS to git: parsing ChangeLog entries?”
  1. Ralf WildenhuesMar 12, 2008
  2. Jeff KingMar 13, 2008
  3. Ralf WildenhuesMar 15, 2008
  4. Michael HaggertyMar 14, 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.