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 <vap...@gentoo.org>

Anyway don't you have another script which will check commit message and 
if is there Signed-off-by line then change author name?
There are a lot of commits with that line and will be good to fix this too.
Adding some new lines to commit messages (At least before Sign-off-by 
line) make sense too.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to