preparing for impending switch to git/fedorahosted
Petr Rockai mentioned that lvm development will soon be switching away from cvs for good (hurray!), and asked about fixing some of the warts in the current mirrored-from-cvs git repository.
Now is indeed the best (and only) time to fix any problem you know about in the repository.
There were many commits with incomplete author/committer name and/or email address:
$ git log --pretty=format:%an:%ae|sort -u
...
fabbione:fabbione
mpatocka:mpatocka
prajnoha:prajnoha
snitzer:snitzer
steve:steve
taka:taka
twoerner:twoerner
zkabelac:zkabelacThe snippet below fixes those listed above, as well as the typo in Petr's email address. Here's the resulting list of authors. If anyone else would like a name/email change, let us know. I notice that Zdeněk Kabeláč's name is spelled two different ways. We can fix that, if desired, and if we know which is preferred.
AJ Lewis:[email protected]
Adam Manthei:[email protected]
Alasdair Kergon:[email protected]
Andres Salomon:[email protected]
Ben Lutgens:[email protected]
Benjamin Marzinski:[email protected]
Bryn M. Reeves:[email protected]
Christine Caulfield:[email protected]
Dave Wysochanski:[email protected]
Fabio M. Di Nitto:[email protected]
Heinz Mauelshagen:[email protected]
Jim Meyering:[email protected]
Joe Thornber:[email protected]
Jonathan Earl Brassow:[email protected]
Mike Snitzer:[email protected]
Mikulas Patocka:[email protected]
Milan Broz:[email protected]
Patrick Caulfield:[email protected]
Peter Rajnoha:[email protected]
Petr Rockai:[email protected]
Steven Whitehouse:[email protected]
Takahiro Yasui:[email protected]
Thomas Woerner:[email protected]
Zdenek Kabelac:[email protected]
Zdeněk Kabeláč:[email protected]
Here's the "command" to make the above changes.
Anyone can run it just before they push the "initial" repository into the empty fedorahosted git repository.
git filter-branch -d .git-rebase --env-filter '
case $GIT_AUTHOR_NAME in
fabbione) n="Fabio M. Di Nitto" [email protected] ;; mpatocka) n="Mikulas Patocka" [email protected] ;; prajnoha) n="Peter Rajnoha" [email protected] ;;
snitzer) n="Mike Snitzer" [email protected] ;;
steve) n="Steven Whitehouse" [email protected] ;;
taka) n="Takahiro Yasui" [email protected] ;;
twoerner) n="Thomas Woerner" [email protected] ;; zkabelac) n="Zdenek Kabelac" [email protected] ;; # The above are just correcting for missing mail map. # This corrects an email address: s/prok/prock/ "Petr Rockai") n="Petr Rockai" e="[email protected]" ;; *) n=$GIT_AUTHOR_NAME e=$GIT_AUTHOR_EMAIL ;;
esac
export GIT_AUTHOR_EMAIL=$e GIT_AUTHOR_NAME=$n export GIT_COMMITTER_EMAIL=$e GIT_COMMITTER_NAME=$n
' master
If there are other types of corrections, like improper authorship, or typos in the commit logs, we can fix those, too.