{"thread":{"id":"11719","subject":"CVS import: Changing/cleaning authors and committers","startedAt":"2008-01-24T15:12:08Z","lastAt":"2008-01-24T17:12:58Z","messageCount":6,"participants":["Robert Haines","David Kastrup","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"66481","messageId":"1424F1B0-7342-4436-9B4A-72D985DDA161@manchester.ac.uk","threadId":"11719","inReplyTo":null,"subject":"CVS import: Changing/cleaning authors and committers","fromName":"Robert Haines","fromEmail":"rhaines@manchester.ac.uk","sentAt":"2008-01-24T15:12:08Z","receivedAt":"2008-01-24T15:12:08Z","isPatch":false,"sender":{"key":"rhaines@manchester.ac.uk","avatar":null},"body":"Hi all,\n\nI am very new to git, but already impressed! I am in the process of  \nconverting my old CVS repos into git. So far so good, it all works  \nwith 'git cvsimport' but I was wondering about the author and  \ncommitter names. All mine have come out as the username of the person  \nwho committed the change into CVS:\n\nauthor xxcguxx <xxcguxx>\ncommitter xxcguxx <xxcguxx>\n\nI was wondering if it would be able to go through and change all that  \nto:\n\nauthor Name <email@address>\netc\n\nIs this something that can be retrospectively done? Is it something  \nthat can be done during cvsimport? Is it even doable?\n\nAny suggestions gratefully received!\n\nBest wishes,\nRob\n\n--\nRobert Haines\n\nResearch Associate, RealityGrid          Tel. : +44 (0)161 275 6067\nResearch Computing Services              Fax. : +44 (0)161 275 0637\nKilburn Building                         Email: rhaines@manchester.ac.uk\nUniversity of Manchester                 Web  : www.realitygrid.org\nManchester, M13 9PL, UK                       : www.rcs.manchester.ac.uk\n"},{"id":"66482","messageId":"86r6g7dyco.fsf@lola.quinscape.zz","threadId":"11719","inReplyTo":"1424F1B0-7342-4436-9B4A-72D985DDA161@manchester.ac.uk","subject":"Re: CVS import: Changing/cleaning authors and committers","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2008-01-24T15:42:15Z","receivedAt":"2008-01-24T15:42:15Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Robert Haines <rhaines@manchester.ac.uk> writes:\n\n> Hi all,\n>\n> I am very new to git, but already impressed! I am in the process of\n> converting my old CVS repos into git. So far so good, it all works\n> with 'git cvsimport' but I was wondering about the author and\n> committer names. All mine have come out as the username of the person\n> who committed the change into CVS:\n>\n> author xxcguxx <xxcguxx>\n> committer xxcguxx <xxcguxx>\n>\n> I was wondering if it would be able to go through and change all that\n> to:\n>\n> author Name <email@address>\n> etc\n>\n> Is this something that can be retrospectively done? Is it something\n> that can be done during cvsimport? Is it even doable?\n>\n> Any suggestions gratefully received!\n\nIf everything else fails, read the documentation.\n\nman git-cvsimport\n\n[...]\n\t-A <author-conv-file>\n\t    CVS by default uses the Unix username when writing its\n\t    commit logs. Using this option and an author-conv-file\n\t    in this format\n\n[...]\n\n-- \nDavid Kastrup\n"},{"id":"66483","messageId":"CEE9B3CD-781F-4BDF-85DA-BA9C32FC1429@manchester.ac.uk","threadId":"11719","inReplyTo":"86r6g7dyco.fsf@lola.quinscape.zz","subject":"Re: CVS import: Changing/cleaning authors and committers","fromName":"Robert Haines","fromEmail":"rhaines@manchester.ac.uk","sentAt":"2008-01-24T15:55:06Z","receivedAt":"2008-01-24T15:55:06Z","isPatch":false,"sender":{"key":"rhaines@manchester.ac.uk","avatar":null},"body":">> Any suggestions gratefully received!\n>\n> If everything else fails, read the documentation.\n\nOh man, I thought I had... Sorry for wasting your time. Boy is my  \nface red...\n\nCheers,\nRob\n"},{"id":"66485","messageId":"86ejc7dxee.fsf@lola.quinscape.zz","threadId":"11719","inReplyTo":"CEE9B3CD-781F-4BDF-85DA-BA9C32FC1429@manchester.ac.uk","subject":"Re: CVS import: Changing/cleaning authors and committers","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2008-01-24T16:02:49Z","receivedAt":"2008-01-24T16:02:49Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Robert Haines <rhaines@manchester.ac.uk> writes:\n\n>>> Any suggestions gratefully received!\n>>\n>> If everything else fails, read the documentation.\n>\n> Oh man [...]\n\nYes, that.\n\n-- \nDavid Kastrup\n"},{"id":"66490","messageId":"20080124163719.GA17283@coredump.intra.peff.net","threadId":"11719","inReplyTo":"1424F1B0-7342-4436-9B4A-72D985DDA161@manchester.ac.uk","subject":"Re: CVS import: Changing/cleaning authors and committers","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-01-24T16:37:19Z","receivedAt":"2008-01-24T16:37:19Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jan 24, 2008 at 03:12:08PM +0000, Robert Haines wrote:\n\n> I was wondering if it would be able to go through and change all that to:\n>\n> author Name <email@address>\n> etc\n>\n> Is this something that can be retrospectively done? Is it something that \n> can be done during cvsimport? Is it even doable?\n\nDavid already answered the second question, and it is probably simpler\nto just redo the import with -A unless there is some complication with\nthat (like you no longer have access to the CVS files).\n\nHowever, to answer your first question: it can be fixed after the fact\nby rewriting history within the git repository; see git-filter-branch.\n\n-Peff\n"},{"id":"66491","messageId":"259E26A1-C9A9-4A92-BB54-77B43AC9E590@manchester.ac.uk","threadId":"11719","inReplyTo":"20080124163719.GA17283@coredump.intra.peff.net","subject":"Re: CVS import: Changing/cleaning authors and committers","fromName":"Robert Haines","fromEmail":"rhaines@manchester.ac.uk","sentAt":"2008-01-24T17:12:58Z","receivedAt":"2008-01-24T17:12:58Z","isPatch":false,"sender":{"key":"rhaines@manchester.ac.uk","avatar":null},"body":"\nOn 24 Jan 2008, at 16:37, Jeff King wrote:\n\n> On Thu, Jan 24, 2008 at 03:12:08PM +0000, Robert Haines wrote:\n>\n>> I was wondering if it would be able to go through and change all  \n>> that to:\n>>\n>> author Name <email@address>\n>> etc\n>>\n>> Is this something that can be retrospectively done? Is it  \n>> something that\n>> can be done during cvsimport? Is it even doable?\n>\n> David already answered the second question, and it is probably simpler\n> to just redo the import with -A unless there is some complication with\n> that (like you no longer have access to the CVS files).\n>\n> However, to answer your first question: it can be fixed after the fact\n> by rewriting history within the git repository; see git-filter-branch.\n\nSo ideally I would have spotted the -A flag originally! I have had  \nsomething of an information overload with git, gitweb and so on  \nrecently.\n\nI decided to re-import with the -A flag as there is (much) less  \nchance of me mucking it up!\n\nThanks,\nRob\n"}]}