* CVS import: Changing/cleaning authors and committers
@ 2008-01-24 15:12 Robert Haines
2008-01-24 15:42 ` David Kastrup
2008-01-24 16:37 ` Jeff King
0 siblings, 2 replies; 6+ messages in thread
From: Robert Haines @ 2008-01-24 15:12 UTC (permalink / raw)
To: Git Mailing List
Hi all,
I am very new to git, but already impressed! I am in the process of
converting my old CVS repos into git. So far so good, it all works
with 'git cvsimport' but I was wondering about the author and
committer names. All mine have come out as the username of the person
who committed the change into CVS:
author xxcguxx <xxcguxx>
committer xxcguxx <xxcguxx>
I was wondering if it would be able to go through and change all that
to:
author Name <email@address>
etc
Is this something that can be retrospectively done? Is it something
that can be done during cvsimport? Is it even doable?
Any suggestions gratefully received!
Best wishes,
Rob
--
Robert Haines
Research Associate, RealityGrid Tel. : +44 (0)161 275 6067
Research Computing Services Fax. : +44 (0)161 275 0637
Kilburn Building Email: rhaines@manchester.ac.uk
University of Manchester Web : www.realitygrid.org
Manchester, M13 9PL, UK : www.rcs.manchester.ac.uk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVS import: Changing/cleaning authors and committers
2008-01-24 15:12 CVS import: Changing/cleaning authors and committers Robert Haines
@ 2008-01-24 15:42 ` David Kastrup
2008-01-24 15:55 ` Robert Haines
2008-01-24 16:37 ` Jeff King
1 sibling, 1 reply; 6+ messages in thread
From: David Kastrup @ 2008-01-24 15:42 UTC (permalink / raw)
To: git
Robert Haines <rhaines@manchester.ac.uk> writes:
> Hi all,
>
> I am very new to git, but already impressed! I am in the process of
> converting my old CVS repos into git. So far so good, it all works
> with 'git cvsimport' but I was wondering about the author and
> committer names. All mine have come out as the username of the person
> who committed the change into CVS:
>
> author xxcguxx <xxcguxx>
> committer xxcguxx <xxcguxx>
>
> I was wondering if it would be able to go through and change all that
> to:
>
> author Name <email@address>
> etc
>
> Is this something that can be retrospectively done? Is it something
> that can be done during cvsimport? Is it even doable?
>
> Any suggestions gratefully received!
If everything else fails, read the documentation.
man git-cvsimport
[...]
-A <author-conv-file>
CVS by default uses the Unix username when writing its
commit logs. Using this option and an author-conv-file
in this format
[...]
--
David Kastrup
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVS import: Changing/cleaning authors and committers
2008-01-24 15:12 CVS import: Changing/cleaning authors and committers Robert Haines
2008-01-24 15:42 ` David Kastrup
@ 2008-01-24 16:37 ` Jeff King
2008-01-24 17:12 ` Robert Haines
1 sibling, 1 reply; 6+ messages in thread
From: Jeff King @ 2008-01-24 16:37 UTC (permalink / raw)
To: Robert Haines; +Cc: Git Mailing List
On Thu, Jan 24, 2008 at 03:12:08PM +0000, Robert Haines wrote:
> I was wondering if it would be able to go through and change all that to:
>
> author Name <email@address>
> etc
>
> Is this something that can be retrospectively done? Is it something that
> can be done during cvsimport? Is it even doable?
David already answered the second question, and it is probably simpler
to just redo the import with -A unless there is some complication with
that (like you no longer have access to the CVS files).
However, to answer your first question: it can be fixed after the fact
by rewriting history within the git repository; see git-filter-branch.
-Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVS import: Changing/cleaning authors and committers
2008-01-24 16:37 ` Jeff King
@ 2008-01-24 17:12 ` Robert Haines
0 siblings, 0 replies; 6+ messages in thread
From: Robert Haines @ 2008-01-24 17:12 UTC (permalink / raw)
To: Jeff King; +Cc: Git Mailing List
On 24 Jan 2008, at 16:37, Jeff King wrote:
> On Thu, Jan 24, 2008 at 03:12:08PM +0000, Robert Haines wrote:
>
>> I was wondering if it would be able to go through and change all
>> that to:
>>
>> author Name <email@address>
>> etc
>>
>> Is this something that can be retrospectively done? Is it
>> something that
>> can be done during cvsimport? Is it even doable?
>
> David already answered the second question, and it is probably simpler
> to just redo the import with -A unless there is some complication with
> that (like you no longer have access to the CVS files).
>
> However, to answer your first question: it can be fixed after the fact
> by rewriting history within the git repository; see git-filter-branch.
So ideally I would have spotted the -A flag originally! I have had
something of an information overload with git, gitweb and so on
recently.
I decided to re-import with the -A flag as there is (much) less
chance of me mucking it up!
Thanks,
Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-01-24 17:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24 15:12 CVS import: Changing/cleaning authors and committers Robert Haines
2008-01-24 15:42 ` David Kastrup
2008-01-24 15:55 ` Robert Haines
2008-01-24 16:02 ` David Kastrup
2008-01-24 16:37 ` Jeff King
2008-01-24 17:12 ` Robert Haines
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox