From: Michal S. <mic...@pe...> - 2010-03-07 13:55:05
|
Mike Frysinger wrote: > On Saturday 06 March 2010 05:25:10 Michal Simek wrote: >> Mike Frysinger wrote: >>> On Saturday 27 February 2010 02:53:48 Rishikesh K Rajak wrote: >>>> We are in process of changing our sf.net host repository to >>>> GIT from CVS.[ Any input/discussion on this is highly appreciable ]. >>> the authorship info really should be fixed before anything is finalized. >>> and a git hook added to reject people pushing patches that lack proper >>> author/committer fields. these commits by "root" are a good example of >>> things that should not be happening. >> Agree. Do you know about any manual how to fix it by any script or setup >> that conversion? I mean to have any convert table where for example will >> be written conversion: >> vampier -> Mike Frysinger. >> root -> Subrata Modak > > i use this script: > #!/bin/bash > > tmp=$(mktemp) > cat << \EOF > ${tmp} > decode() { > awk -vid="$1" -vtype="$2" '$1 == id { > print "export GIT_"type"_NAME='\''" $3 " " $4 "'\'';" > print "export GIT_"type"_EMAIL='\''" $5 "'\'';" > }' ${author_file} > } > EOF > > for x in cvs-authors authors ; do > export author_file=${PWD}/.git/$x > [ -e ${author_file} ] && break > done > git filter-branch \ > --env-filter ". ${tmp};"' \ > eval `decode "${GIT_AUTHOR_NAME}" AUTHOR`; \ > eval `decode "${GIT_COMMITTER_NAME}" COMMITTER`; \ > ' "$@" > > rm -f $tmp > > use a normal authors file in like .git/authors and run it. the authors format > looks something like: > vapier = Mike Frysinger <va...@ge...> Nice. It is easy to use - there are only 20 people who did commits. git shortlog -s | cut -c8- I see that there are only three problematic names. uid311324 uid52817 uid59787 Thanks for fixing that repo - just use that Mike's script with correct authors file. Thanks, Michal > ... > -mike -- Michal Simek, Ing. (M.Eng) PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 |